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