Skip to content

Commit

Permalink
Rubocop: Fix RSpec/BeEql
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Feb 13, 2018
1 parent 1268449 commit 9f30d30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-02-13 20:20:45 +0000 using RuboCop version 0.49.1.
# on 2018-02-13 20:22:33 +0000 using RuboCop version 0.49.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -37,11 +37,6 @@ RSpec/AroundBlock:
Exclude:
- 'spec/helpers/rspechelpers.rb'

# Offense count: 3
RSpec/BeEql:
Exclude:
- 'spec/unit/jenkins_plugins_spec.rb'

# Offense count: 1
# Configuration parameters: CustomIncludeMethods.
RSpec/EmptyExampleGroup:
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/jenkins_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@

it { is_expected.to be_instance_of Hash }
it 'has the right number of keys' do
expect(data.keys.size).to eql(18)
expect(data.keys.size).to be(18)
end
end
end
Expand All @@ -144,7 +144,7 @@
context 'uses json' do
it { is_expected.to be_instance_of Hash }
it { is_expected.to have_key('AdaptivePlugin') }
its (:size) { is_expected.to eql 1 }
its (:size) { is_expected.to be 1 }
end

context 'uses okjson when json is not avaliable' do
Expand All @@ -155,7 +155,7 @@

it { is_expected.to be_instance_of Hash }
it { is_expected.to have_key('AdaptivePlugin') }
its (:size) { is_expected.to eql 1 }
its (:size) { is_expected.to be 1 }
end
end

Expand Down

0 comments on commit 9f30d30

Please sign in to comment.