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