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