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

Commit 3a433db

Browse files
committed
Merge pull request #463 from rspec/dont-use-should
Fix specs not to use should syntax
1 parent f2b0595 commit 3a433db

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
@@ -128,7 +128,7 @@ def method_missing(name, *args, &block)
128128
'foo'
129129
end
130130

131-
it { should equal(String) }
131+
it { is_expected.to equal(String) }
132132
end
133133

134134
context 'with a BasicObject instance' do
@@ -150,15 +150,15 @@ def self.to_s
150150
end
151151
end
152152

153-
it { should equal(basic_object_class) }
153+
it { is_expected.to equal(basic_object_class) }
154154
end
155155

156156
context 'with nil' do
157157
let(:object) do
158158
nil
159159
end
160160

161-
it { should equal(NilClass) }
161+
it { is_expected.to equal(NilClass) }
162162
end
163163

164164
context 'with an object having a singleton class' do
@@ -181,7 +181,7 @@ def object.some_method
181181
String
182182
end
183183

184-
it { should equal(Class) }
184+
it { is_expected.to equal(Class) }
185185
end
186186
end
187187

0 commit comments

Comments
 (0)