Skip to content

Commit

Permalink
(CONT-792) - Correct RSpec/ContextMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent 5bbd183 commit 8e0275a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ Naming/HeredocDelimiterNaming:
- 'spec/defines/server/default_privileges_spec.rb'
- 'spec/defines/server/grant_spec.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# RSpec/BeEq:
# Exclude:
# - 'spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb'
# - 'spec/spec_helper_local.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/ContextMethod:
Exclude:
- 'spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb'

# Offense count: 104
# Configuration parameters: Prefixes, AllowedPatterns.
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end
let(:provider) { resource.provider }

context('#run_sql_command') do
describe('#run_sql_command') do
describe 'with default attributes' do
let(:attributes) { { db: 'spec_db' } }

Expand Down Expand Up @@ -98,7 +98,7 @@
end
end

context('#run_unless_sql_command') do
describe('#run_unless_sql_command') do
let(:attributes) { {} }

it 'calls #run_sql_command with SQL' do
Expand Down

0 comments on commit 8e0275a

Please sign in to comment.