Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Fix specs not to use should syntax #462

Merged
merged 1 commit into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/rspec/support/comparable_version_spec.rb
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 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