From 5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Jul 2019 12:40:09 +0200 Subject: Update to ruby/spec@875a09e --- spec/ruby/core/array/shared/push.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core/array/shared/push.rb') 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 -- cgit v1.2.3