Skip to content

Commit 5b79b48

Browse files
committed
Correct RSpec/BeEq
1 parent 4a66671 commit 5b79b48

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ Performance/CollectionLiteralInLoop:
2222
Exclude:
2323
- 'spec/defines/accounts_user_spec.rb'
2424

25-
# Offense count: 2
26-
# This cop supports unsafe autocorrection (--autocorrect-all).
27-
RSpec/BeEq:
28-
Exclude:
29-
- 'spec/functions/accounts_ssh_authorized_keys_line_parser_spec.rb'
30-
- 'spec/functions/accounts_ssh_options_parser_spec.rb'
31-
3225
# Offense count: 4
3326
# Configuration parameters: Prefixes, AllowedPatterns.
3427
# Prefixes: when, with, without

spec/functions/accounts_ssh_authorized_keys_line_parser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
describe 'accounts_ssh_authorized_keys_line_parser' do
66
it {
7-
expect(subject).not_to eq(nil)
7+
expect(subject).not_to be_nil
88
}
99

1010
it {

spec/functions/accounts_ssh_options_parser_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 'accounts_ssh_options_parser' do
6-
it { is_expected.not_to eq(nil) }
6+
it { is_expected.not_to be_nil }
77
it { is_expected.to run.with_params('').and_return([]) }
88
it { is_expected.to run.with_params('"').and_raise_error(ArgumentError, %r{Unmatched double quote}) }
99
it { is_expected.to run.with_params('tunnel="0"').and_return(['tunnel="0"']) }

0 commit comments

Comments
 (0)