aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/hash/merge_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/merge_spec.rb')
-rw-r--r--spec/ruby/core/hash/merge_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/hash/merge_spec.rb b/spec/ruby/core/hash/merge_spec.rb
index 77e5c42071..91ded30eb7 100644
--- a/spec/ruby/core/hash/merge_spec.rb
+++ b/spec/ruby/core/hash/merge_spec.rb
@@ -28,7 +28,7 @@ describe "Hash#merge" do
r = h1.merge(h2) { |k,x,y| "#{k}:#{x+2*y}" }
r.should == { a: "a:-2", b: "b:9", c: -3, d: 5 }
- lambda {
+ -> {
h1.merge(h2) { |k, x, y| raise(IndexError) }
}.should raise_error(IndexError)