summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/shared/comparison_coerce.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/shared/comparison_coerce.rb')
-rw-r--r--spec/ruby/core/integer/shared/comparison_coerce.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/integer/shared/comparison_coerce.rb b/spec/ruby/core/integer/shared/comparison_coerce.rb
index af52f5e99b..4bb7404183 100644
--- a/spec/ruby/core/integer/shared/comparison_coerce.rb
+++ b/spec/ruby/core/integer/shared/comparison_coerce.rb
@@ -6,6 +6,6 @@ describe :integer_comparison_coerce_not_rescue, shared: true do
b.should_receive(:coerce).and_raise(IntegerSpecs::CoerceError)
# e.g. 1 > b
- -> { 1.send(@method, b) }.should raise_error(IntegerSpecs::CoerceError)
+ -> { 1.send(@method, b) }.should.raise(IntegerSpecs::CoerceError)
end
end