aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/float/divide_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/float/divide_spec.rb')
-rw-r--r--spec/ruby/core/float/divide_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/float/divide_spec.rb b/spec/ruby/core/float/divide_spec.rb
index f41b9f1f93..d8f71a6b98 100644
--- a/spec/ruby/core/float/divide_spec.rb
+++ b/spec/ruby/core/float/divide_spec.rb
@@ -33,7 +33,7 @@ describe "Float#/" do
end
it "raises a TypeError when given a non-Numeric" do
- lambda { 13.0 / "10" }.should raise_error(TypeError)
- lambda { 13.0 / :symbol }.should raise_error(TypeError)
+ -> { 13.0 / "10" }.should raise_error(TypeError)
+ -> { 13.0 / :symbol }.should raise_error(TypeError)
end
end