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