summaryrefslogtreecommitdiff
path: root/spec/ruby/library/complex/math/shared/cosh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/complex/math/shared/cosh.rb')
-rw-r--r--spec/ruby/library/complex/math/shared/cosh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/complex/math/shared/cosh.rb b/spec/ruby/library/complex/math/shared/cosh.rb
index a56a655cd5..7cf561c985 100644
--- a/spec/ruby/library/complex/math/shared/cosh.rb
+++ b/spec/ruby/library/complex/math/shared/cosh.rb
@@ -23,6 +23,6 @@ describe :complex_math_cosh_bang, shared: true do
end
it "raises a TypeError when passed a Complex number" do
- lambda { @object.send(:cosh!, Complex(4, 5)) }.should raise_error(TypeError)
+ -> { @object.send(:cosh!, Complex(4, 5)) }.should raise_error(TypeError)
end
end