diff options
Diffstat (limited to 'spec/ruby/library/complex/math/shared/exp.rb')
-rw-r--r-- | spec/ruby/library/complex/math/shared/exp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/complex/math/shared/exp.rb b/spec/ruby/library/complex/math/shared/exp.rb index 91ab5739be..6715ac63d3 100644 --- a/spec/ruby/library/complex/math/shared/exp.rb +++ b/spec/ruby/library/complex/math/shared/exp.rb @@ -23,6 +23,6 @@ describe :complex_math_exp_bang, shared: true do end it "raises a TypeError when passed a Complex number" do - lambda { @object.send(:exp!, Complex(1, 3)) }.should raise_error(TypeError) + -> { @object.send(:exp!, Complex(1, 3)) }.should raise_error(TypeError) end end |