summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/shared/arithmetic_coerce.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/shared/arithmetic_coerce.rb')
-rw-r--r--spec/ruby/core/integer/shared/arithmetic_coerce.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/integer/shared/arithmetic_coerce.rb b/spec/ruby/core/integer/shared/arithmetic_coerce.rb
index 1260192df1..561b18fe52 100644
--- a/spec/ruby/core/integer/shared/arithmetic_coerce.rb
+++ b/spec/ruby/core/integer/shared/arithmetic_coerce.rb
@@ -6,6 +6,6 @@ describe :integer_arithmetic_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