Skip to content

Commit

Permalink
Showing 3 changed files with 1 addition and 1 deletion.
Empty file removed spec/ruby/core/.jrubydir
Empty file.
2 changes: 1 addition & 1 deletion spec/ruby/core/hash/dig_spec.rb
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def obj.dig(*args); [ 42 ] end

it "raises TypeError if an intermediate element does not respond to #dig" do
h = {}
h[:foo] = [ { :bar => [ 1 ] }, [ nil, 'str' ] ]
h[:foo] = [ { bar: [ 1 ] }, [ nil, 'str' ] ]
lambda { h.dig(:foo, 0, :bar, 0, 0) }.should raise_error(TypeError)
lambda { h.dig(:foo, 1, 1, 0) }.should raise_error(TypeError)
end
Empty file removed spec/ruby/language/.jrubydir
Empty file.

0 comments on commit 88dfaac

Please sign in to comment.