summaryrefslogtreecommitdiff
path: root/spec/ruby/library/complex/math/shared/acosh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/complex/math/shared/acosh.rb')
-rw-r--r--spec/ruby/library/complex/math/shared/acosh.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/complex/math/shared/acosh.rb b/spec/ruby/library/complex/math/shared/acosh.rb
index a2cd887f95..285b0b823f 100644
--- a/spec/ruby/library/complex/math/shared/acosh.rb
+++ b/spec/ruby/library/complex/math/shared/acosh.rb
@@ -26,12 +26,12 @@ describe :complex_math_acosh_bang, shared: true do
end
it "raises Errno::EDOM for numbers less than 1.0" do
- lambda { @object.send(:acosh!, 1.0 - TOLERANCE) }.should raise_error(Errno::EDOM)
- lambda { @object.send(:acosh!, 0) }.should raise_error(Errno::EDOM)
- lambda { @object.send(:acosh!, -1.0) }.should raise_error(Errno::EDOM)
+ -> { @object.send(:acosh!, 1.0 - TOLERANCE) }.should raise_error(Errno::EDOM)
+ -> { @object.send(:acosh!, 0) }.should raise_error(Errno::EDOM)
+ -> { @object.send(:acosh!, -1.0) }.should raise_error(Errno::EDOM)
end
it "raises a TypeError when passed a Complex number" do
- lambda { @object.send(:acosh!, Complex(4, 5)) }.should raise_error(TypeError)
+ -> { @object.send(:acosh!, Complex(4, 5)) }.should raise_error(TypeError)
end
end