Skip to content

Commit 5bbd183

Browse files
author
jordanbreen28
committed
(CONT-792) - Correct RSpec/BeEq
1 parent db6f562 commit 5bbd183

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.rubocop_todo.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ Metrics/ParameterLists:
4444
Metrics/PerceivedComplexity:
4545
Max: 11
4646

47-
# Offense count: 1
48-
# Naming/AccessorMethodName:
49-
# Exclude:
50-
# - 'lib/puppet/type/postgresql_psql.rb'
51-
5247
# Offense count: 24
5348
# Configuration parameters: ForbiddenDelimiters.
5449
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
@@ -66,10 +61,10 @@ Naming/HeredocDelimiterNaming:
6661

6762
# Offense count: 3
6863
# This cop supports unsafe autocorrection (--autocorrect-all).
69-
RSpec/BeEq:
70-
Exclude:
71-
- 'spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb'
72-
- 'spec/spec_helper_local.rb'
64+
# RSpec/BeEq:
65+
# Exclude:
66+
# - 'spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb'
67+
# - 'spec/spec_helper_local.rb'
7368

7469
# Offense count: 2
7570
# This cop supports safe autocorrection (--autocorrect).

spec/functions/postgresql_postgresql_acls_to_resources_hash_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'spec_helper'
44

55
describe 'postgresql::postgresql_acls_to_resources_hash' do
6-
it { is_expected.not_to eq(nil) }
6+
it { is_expected.not_to be_nil }
77
context 'individual transform tests' do
88
it do
99
input = 'local all postgres ident'

spec/spec_helper_local.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def param(type, title, param)
4545
end
4646

4747
shared_examples 'postgresql_password function' do
48-
it { is_expected.not_to eq(nil) }
48+
it { is_expected.not_to be_nil }
4949

5050
it {
5151
is_expected.to run.with_params('foo', 'bar').and_return(
@@ -73,7 +73,7 @@ def param(type, title, param)
7373
end
7474

7575
shared_examples 'postgresql_escape function' do
76-
it { is_expected.not_to eq(nil) }
76+
it { is_expected.not_to be_nil }
7777
it {
7878
is_expected.to run.with_params('foo')
7979
.and_return('$$foo$$')

0 commit comments

Comments
 (0)