aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/integer/rationalize_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/rationalize_spec.rb')
-rw-r--r--spec/ruby/core/integer/rationalize_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/integer/rationalize_spec.rb b/spec/ruby/core/integer/rationalize_spec.rb
index 590ab40cb2..09d741af33 100644
--- a/spec/ruby/core/integer/rationalize_spec.rb
+++ b/spec/ruby/core/integer/rationalize_spec.rb
@@ -33,7 +33,7 @@ describe "Integer#rationalize" do
end
it "raises ArgumentError when passed more than one argument" do
- lambda { 1.rationalize(0.1, 0.1) }.should raise_error(ArgumentError)
- lambda { 1.rationalize(0.1, 0.1, 2) }.should raise_error(ArgumentError)
+ -> { 1.rationalize(0.1, 0.1) }.should raise_error(ArgumentError)
+ -> { 1.rationalize(0.1, 0.1, 2) }.should raise_error(ArgumentError)
end
end