Skip to content

Commit

Permalink
(CONT-792) - Correct RSpec/BeEq
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent db6f562 commit 5bbd183
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
13 changes: 4 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ Metrics/ParameterLists:
Metrics/PerceivedComplexity:
Max: 11

# Offense count: 1
# Naming/AccessorMethodName:
# Exclude:
# - 'lib/puppet/type/postgresql_psql.rb'

# Offense count: 24
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Expand All @@ -66,10 +61,10 @@ Naming/HeredocDelimiterNaming:

# 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'
# 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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

describe 'postgresql::postgresql_acls_to_resources_hash' do
it { is_expected.not_to eq(nil) }
it { is_expected.not_to be_nil }
context 'individual transform tests' do
it do
input = 'local all postgres ident'
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def param(type, title, param)
end

shared_examples 'postgresql_password function' do
it { is_expected.not_to eq(nil) }
it { is_expected.not_to be_nil }

it {
is_expected.to run.with_params('foo', 'bar').and_return(
Expand Down Expand Up @@ -73,7 +73,7 @@ def param(type, title, param)
end

shared_examples 'postgresql_escape function' do
it { is_expected.not_to eq(nil) }
it { is_expected.not_to be_nil }
it {
is_expected.to run.with_params('foo')
.and_return('$$foo$$')
Expand Down

0 comments on commit 5bbd183

Please sign in to comment.