summaryrefslogtreecommitdiff
path: root/spec/ruby/core/math/erf_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/math/erf_spec.rb')
-rw-r--r--spec/ruby/core/math/erf_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/math/erf_spec.rb b/spec/ruby/core/math/erf_spec.rb
index 96757e412d..b4e6248e43 100644
--- a/spec/ruby/core/math/erf_spec.rb
+++ b/spec/ruby/core/math/erf_spec.rb
@@ -21,7 +21,7 @@ describe "Math.erf" do
end
it "raises a TypeError if the argument cannot be coerced with Float()" do
- lambda { Math.erf("test") }.should raise_error(TypeError)
+ -> { Math.erf("test") }.should raise_error(TypeError)
end
it "returns NaN given NaN" do
@@ -29,7 +29,7 @@ describe "Math.erf" do
end
it "raises a TypeError if the argument is nil" do
- lambda { Math.erf(nil) }.should raise_error(TypeError)
+ -> { Math.erf(nil) }.should raise_error(TypeError)
end
it "accepts any argument that can be coerced with Float()" do