diff options
Diffstat (limited to 'spec/ruby/core/math/atan2_spec.rb')
| -rw-r--r-- | spec/ruby/core/math/atan2_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/math/atan2_spec.rb b/spec/ruby/core/math/atan2_spec.rb index da1b3476cc..d4ef369d2a 100644 --- a/spec/ruby/core/math/atan2_spec.rb +++ b/spec/ruby/core/math/atan2_spec.rb @@ -14,15 +14,15 @@ describe "Math.atan2" do end it "raises a TypeError if the argument cannot be coerced with Float()" do - lambda { Math.atan2(1.0, "test") }.should raise_error(TypeError) - lambda { Math.atan2("test", 0.0) }.should raise_error(TypeError) - lambda { Math.atan2("test", "this") }.should raise_error(TypeError) + -> { Math.atan2(1.0, "test") }.should raise_error(TypeError) + -> { Math.atan2("test", 0.0) }.should raise_error(TypeError) + -> { Math.atan2("test", "this") }.should raise_error(TypeError) end it "raises a TypeError if the argument is nil" do - lambda { Math.atan2(nil, 1.0) }.should raise_error(TypeError) - lambda { Math.atan2(-1.0, nil) }.should raise_error(TypeError) - lambda { Math.atan2(nil, nil) }.should raise_error(TypeError) + -> { Math.atan2(nil, 1.0) }.should raise_error(TypeError) + -> { Math.atan2(-1.0, nil) }.should raise_error(TypeError) + -> { Math.atan2(nil, nil) }.should raise_error(TypeError) end it "accepts any argument that can be coerced with Float()" do |
