Skip to content

Commit 17bb8e6

Browse files
committed
Merge pull request #346 from rthbound/patch-9
Strengthen hash_with_indifferent_access_spec.rb
2 parents 50cff53 + 5e654e3 commit 17bb8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/core_ext/hash_with_indifferent_access_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
it "merges keys independent if they are symbols or strings" do
3333
@hash.merge!('force' => false, :baz => "boom")
3434
expect(@hash[:force]).to eq(false)
35-
expect(@hash[:baz]).to eq("boom")
35+
expect(@hash["baz"]).to eq("boom")
3636
end
3737

3838
it "creates a new hash by merging keys independent if they are symbols or strings" do
3939
other = @hash.merge('force' => false, :baz => "boom")
4040
expect(other[:force]).to eq(false)
41-
expect(other[:baz]).to eq("boom")
41+
expect(other["baz"]).to eq("boom")
4242
end
4343

4444
it "converts to a traditional hash" do

0 commit comments

Comments
 (0)