summaryrefslogtreecommitdiff
path: root/spec/hashie/extensions/coercion_spec.rb
diff options
context:
space:
mode:
authordblock <dblock@dblock.org>2014-08-26 17:39:25 -0400
committerdblock <dblock@dblock.org>2014-08-26 17:39:25 -0400
commit323bae3d9b0f09adfcf6a743fca606ef232d3e73 (patch)
tree4d25370abc0f9ac83a2f6921eac2776bd214ccb9 /spec/hashie/extensions/coercion_spec.rb
parente59c5a2725cd4d85b22f13b1c5a799bc5064caa8 (diff)
downloadhashie-323bae3d9b0f09adfcf6a743fca606ef232d3e73.tar.gz
Revert "dont convert keys on initialization"
This reverts commit 33f73e0635fc4d2c9f4726c744b50667c82d7b39. Conflicts: CHANGELOG.md
Diffstat (limited to 'spec/hashie/extensions/coercion_spec.rb')
-rw-r--r--spec/hashie/extensions/coercion_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/hashie/extensions/coercion_spec.rb b/spec/hashie/extensions/coercion_spec.rb
index 20cd706..17261ed 100644
--- a/spec/hashie/extensions/coercion_spec.rb
+++ b/spec/hashie/extensions/coercion_spec.rb
@@ -346,7 +346,7 @@ describe Hashie::Extensions::Coercion do
it 'coerces when setting with string index' do
tweet = TweetMash.new
tweet['user'] = { email: 'foo@bar.com' }
- expect(tweet['user']).to be_a(UserMash)
+ expect(tweet[:user]).to be_a(UserMash)
end
it 'coerces when setting with symbol index' do