aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorBrian Cardarella <bcardarella@gmail.com>2011-07-30 12:08:26 -0400
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:25 -0700
commit3d87d01dad08f0ff84d38b1211ba8de0364e0efb (patch)
treea7d4976c61083b9ee81ee8ecf60513f9556dcb33 /activerecord/test
parent759815547bf85167e97b3cdbff2f1e8d33e218e4 (diff)
downloadrails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.tar.gz
rails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.tar.bz2
rails-3d87d01dad08f0ff84d38b1211ba8de0364e0efb.zip
Resolve warnings by instantizing @attrubtes as nil
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb1
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