Skip to content

Commit

Permalink
[support] Merge pull request rspec/rspec-support#462 from rspec/remov…
Browse files Browse the repository at this point in the history
…e-monkey-patching

Fix specs not to use should syntax

---
This commit was imported from rspec/rspec-support@78b517f.
  • Loading branch information
JonRowe authored Dec 23, 2020
2 parents 1343eb6 + 5aa50d0 commit 18a8e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module RSpec::Support
ComparableVersion.new(subject_string) <=> ComparableVersion.new(other_string)
end

it { should eq(expected) }
it { is_expected.to eq(expected) }
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions rspec-support/spec/rspec/support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ def method_missing(name, *args, &block)
'foo'
end

it { should equal(String) }
it { is_expected.to equal(String) }
end

context 'with a BasicObject instance' do
let(:object) do
BasicObject.new
end

it { should equal(BasicObject) }
it { is_expected.to equal(BasicObject) }
end

context 'with nil' do
let(:object) do
nil
end

it { should equal(NilClass) }
it { is_expected.to equal(NilClass) }
end

context 'with an object having a singleton class' do
Expand All @@ -162,7 +162,7 @@ def object.some_method
String
end

it { should equal(Class) }
it { is_expected.to equal(Class) }
end
end

Expand Down

0 comments on commit 18a8e4d

Please sign in to comment.