diff options
Diffstat (limited to 'spec/ruby/library/complex/math/shared/log.rb')
-rw-r--r-- | spec/ruby/library/complex/math/shared/log.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/complex/math/shared/log.rb b/spec/ruby/library/complex/math/shared/log.rb index f3aad0d66a..4b23e8c5f2 100644 --- a/spec/ruby/library/complex/math/shared/log.rb +++ b/spec/ruby/library/complex/math/shared/log.rb @@ -30,10 +30,10 @@ describe :complex_math_log_bang, shared: true do end it "raises an Errno::EDOM if the argument is less than 0" do - lambda { @object.send(:log!, -10) }.should raise_error(Errno::EDOM) + -> { @object.send(:log!, -10) }.should raise_error(Errno::EDOM) end it "raises a TypeError when passed a Complex number" do - lambda { @object.send(:log!, Complex(4, 5)) }.should raise_error(TypeError) + -> { @object.send(:log!, Complex(4, 5)) }.should raise_error(TypeError) end end |