diff options
Diffstat (limited to 'spec/ruby/core/array/shared/push.rb')
-rw-r--r-- | spec/ruby/core/array/shared/push.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/array/shared/push.rb b/spec/ruby/core/array/shared/push.rb index effa632890..df307073cd 100644 --- a/spec/ruby/core/array/shared/push.rb +++ b/spec/ruby/core/array/shared/push.rb @@ -27,7 +27,7 @@ describe :array_push, shared: true do end it "raises a #{frozen_error_class} on a frozen array" do - lambda { ArraySpecs.frozen_array.send(@method, 1) }.should raise_error(frozen_error_class) - lambda { ArraySpecs.frozen_array.send(@method) }.should raise_error(frozen_error_class) + -> { ArraySpecs.frozen_array.send(@method, 1) }.should raise_error(frozen_error_class) + -> { ArraySpecs.frozen_array.send(@method) }.should raise_error(frozen_error_class) end end |