aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/serialized_attribute_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-04 06:43:30 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-04 06:43:30 -0600
commitc3bd7b57e359788b26674683fb5b1518c75f6bb1 (patch)
tree779f73e9319dedede9ee5c557be91a7cb92fec4a /activerecord/test/cases/serialized_attribute_test.rb
parent0329d59a65a5afbf57de83670e3e05e4a73815e4 (diff)
downloadrails-c3bd7b57e359788b26674683fb5b1518c75f6bb1.tar.gz
rails-c3bd7b57e359788b26674683fb5b1518c75f6bb1.tar.bz2
rails-c3bd7b57e359788b26674683fb5b1518c75f6bb1.zip
Bring type casting behavior of hstore/json in line with serialized
`@raw_attributes` should not contain the type-cast, mutable version of the value.
Diffstat (limited to 'activerecord/test/cases/serialized_attribute_test.rb')
-rw-r--r--activerecord/test/cases/serialized_attribute_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb
index 5ea62c9f59..debb227303 100644
--- a/activerecord/test/cases/serialized_attribute_test.rb
+++ b/activerecord/test/cases/serialized_attribute_test.rb
@@ -31,7 +31,7 @@ class SerializedAttributeTest < ActiveRecord::TestCase
def test_serialized_attribute_init_with
topic = Topic.allocate
- topic.init_with('attributes' => { 'content' => '--- foo' })
+ topic.init_with('raw_attributes' => { 'content' => '--- foo' })
assert_equal 'foo', topic.content
end