Skip to content

Commit eb25824

Browse files
committed
test symbolize_keys! when value is array in hash_spec
1 parent 984fb27 commit eb25824

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/bitbucket_rest_api/core_ext/hash_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
it 'should convert nested keys to symbols' do
2727
expect(@nested_hash.symbolize_keys!).to eq @symbols
28+
29+
@nested_hash_with_array = { 'a' => { 'b' => [{'c' => 1}] } }
30+
expect(@nested_hash_with_array.symbolize_keys!).to eq({:a=>{:b=>[{:c=>1}]}})
2831
end
2932
end
3033

0 commit comments

Comments
 (0)