diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-26 02:35:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-26 02:40:38 -0300 |
commit | 258461ee333ab6bcec983362f46e271fca9f3614 (patch) | |
tree | 81cf4c5d38f9d23e9abe8c7666239f1fb43138f7 /activerecord/test/cases/attribute_methods_test.rb | |
parent | df1d21a554af57c76866c7950f4dfcef0986c172 (diff) | |
download | rails-258461ee333ab6bcec983362f46e271fca9f3614.tar.gz rails-258461ee333ab6bcec983362f46e271fca9f3614.tar.bz2 rails-258461ee333ab6bcec983362f46e271fca9f3614.zip |
Move test to the correct file
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 4bc68acd13..c043e32a20 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -734,6 +734,12 @@ class AttributeMethodsTest < ActiveRecord::TestCase assert_equal %w(preferences), Contact.serialized_attributes.keys end + def test_serialized_attributes_are_class_level_settings + topic = Topic.new + assert_raise(NoMethodError) { topic.serialized_attributes = [] } + assert_deprecated { topic.serialized_attributes } + end + def test_instance_method_should_be_defined_on_the_base_class subklass = Class.new(Topic) |