diff options
author | Brian Cardarella <bcardarella@gmail.com> | 2011-07-30 12:08:26 -0400 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:25 -0700 |
commit | 3d87d01dad08f0ff84d38b1211ba8de0364e0efb (patch) | |
tree | a7d4976c61083b9ee81ee8ecf60513f9556dcb33 /activerecord/test/cases/attribute_methods_test.rb | |
parent | 759815547bf85167e97b3cdbff2f1e8d33e218e4 (diff) | |
download | rails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.tar.gz rails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.tar.bz2 rails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.zip |
Resolve warnings by instantizing @attrubtes as nil
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index b0896fb236..dbf5a1ba76 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -113,6 +113,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase # by inspecting it. def test_allocated_object_can_be_inspected topic = Topic.allocate + topic.instance_eval { @attributes = nil } assert_nothing_raised { topic.inspect } assert topic.inspect, "#<Topic not initialized>" end |