summaryrefslogtreecommitdiff
path: root/spec/hashie/hash_spec.rb
diff options
context:
space:
mode:
authorCaroline Artz <ceartz@gmail.com>2020-05-04 20:15:32 -0500
committerGitHub <noreply@github.com>2020-05-04 21:15:32 -0400
commit0bca9255a6234606cbdd98880ccc241f192cfdae (patch)
treed165924fdabec9b24edca434e2b0bd998d602e33 /spec/hashie/hash_spec.rb
parentc066135a4bd6c75cd19fe342f768d2213df9e684 (diff)
downloadhashie-0bca9255a6234606cbdd98880ccc241f192cfdae.tar.gz
Changes to `Mash` initialization key string conversion. (#521)
Diffstat (limited to 'spec/hashie/hash_spec.rb')
-rw-r--r--spec/hashie/hash_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/hashie/hash_spec.rb b/spec/hashie/hash_spec.rb
index 0282258..9e2b4e0 100644
--- a/spec/hashie/hash_spec.rb
+++ b/spec/hashie/hash_spec.rb
@@ -41,7 +41,7 @@ describe Hash do
it '#to_hash with symbolize_keys set to true returns a hash with symbolized keys' do
hash = Hashie::Hash['a' => 'hey', 123 => 'bob', 'array' => [1, 2, 3]]
symbolized_hash = hash.to_hash(symbolize_keys: true)
- expect(symbolized_hash).to eq(a: 'hey', :"123" => 'bob', array: [1, 2, 3])
+ expect(symbolized_hash).to eq(a: 'hey', 123 => 'bob', array: [1, 2, 3])
end
it "#to_hash should not blow up when #to_hash doesn't accept arguments" do
@@ -112,9 +112,9 @@ describe Hash do
expected = {
a: 'hey',
- :"123" => 'bob',
+ 123 => 'bob',
array: [1, 2, 3],
- subhash: { a: 'hey', b: 'bar', :'123' => 'bob', array: [1, 2, 3] }
+ subhash: { a: 'hey', b: 'bar', 123 => 'bob', array: [1, 2, 3] }
}
expect(symbolized_hash).to eq(expected)