aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-26 02:35:01 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-26 02:40:38 -0300
commit258461ee333ab6bcec983362f46e271fca9f3614 (patch)
tree81cf4c5d38f9d23e9abe8c7666239f1fb43138f7 /activerecord/test/cases/base_test.rb
parentdf1d21a554af57c76866c7950f4dfcef0986c172 (diff)
downloadrails-258461ee333ab6bcec983362f46e271fca9f3614.tar.gz
rails-258461ee333ab6bcec983362f46e271fca9f3614.tar.bz2
rails-258461ee333ab6bcec983362f46e271fca9f3614.zip
Move test to the correct file
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rw-r--r--activerecord/test/cases/base_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 63981a68a9..8915e1aea7 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -1310,6 +1310,12 @@ class BasicsTest < ActiveRecord::TestCase
assert_equal(myobj, topic.content)
end
+ def test_serialized_attribute_init_with
+ topic = Topic.allocate
+ topic.init_with('attributes' => { 'content' => '--- foo' })
+ assert_equal 'foo', topic.content
+ end
+
def test_serialized_attribute_in_base_class
Topic.serialize("content", Hash)