Skip to content

Commit 8e0275a

Browse files
author
jordanbreen28
committed
(CONT-792) - Correct RSpec/ContextMethod
1 parent 5bbd183 commit 8e0275a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ Naming/HeredocDelimiterNaming:
5959
- 'spec/defines/server/default_privileges_spec.rb'
6060
- 'spec/defines/server/grant_spec.rb'
6161

62-
# Offense count: 3
63-
# This cop supports unsafe autocorrection (--autocorrect-all).
64-
# RSpec/BeEq:
65-
# Exclude:
66-
# - 'spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb'
67-
# - 'spec/spec_helper_local.rb'
68-
69-
# Offense count: 2
70-
# This cop supports safe autocorrection (--autocorrect).
71-
RSpec/ContextMethod:
72-
Exclude:
73-
- 'spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb'
7462

7563
# Offense count: 104
7664
# Configuration parameters: Prefixes, AllowedPatterns.

spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
end
1010
let(:provider) { resource.provider }
1111

12-
context('#run_sql_command') do
12+
describe('#run_sql_command') do
1313
describe 'with default attributes' do
1414
let(:attributes) { { db: 'spec_db' } }
1515

@@ -98,7 +98,7 @@
9898
end
9999
end
100100

101-
context('#run_unless_sql_command') do
101+
describe('#run_unless_sql_command') do
102102
let(:attributes) { {} }
103103

104104
it 'calls #run_sql_command with SQL' do

0 commit comments

Comments
 (0)