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