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

Commit 78b517f

Browse files
authored
Merge pull request #462 from rspec/remove-monkey-patching
Fix specs not to use should syntax
2 parents 203b3cd + 837a5e7 commit 78b517f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/rspec/support/comparable_version_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module RSpec::Support
3131
ComparableVersion.new(subject_string) <=> ComparableVersion.new(other_string)
3232
end
3333

34-
it { should eq(expected) }
34+
it { is_expected.to eq(expected) }
3535
end
3636
end
3737
end

spec/rspec/support_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,23 +123,23 @@ def method_missing(name, *args, &block)
123123
'foo'
124124
end
125125

126-
it { should equal(String) }
126+
it { is_expected.to equal(String) }
127127
end
128128

129129
context 'with a BasicObject instance' do
130130
let(:object) do
131131
BasicObject.new
132132
end
133133

134-
it { should equal(BasicObject) }
134+
it { is_expected.to equal(BasicObject) }
135135
end
136136

137137
context 'with nil' do
138138
let(:object) do
139139
nil
140140
end
141141

142-
it { should equal(NilClass) }
142+
it { is_expected.to equal(NilClass) }
143143
end
144144

145145
context 'with an object having a singleton class' do
@@ -162,7 +162,7 @@ def object.some_method
162162
String
163163
end
164164

165-
it { should equal(Class) }
165+
it { is_expected.to equal(Class) }
166166
end
167167
end
168168

0 commit comments

Comments
 (0)