aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorBrian Cardarella <bcardarella@gmail.com>2011-07-30 12:08:26 -0400
committerBrian Cardarella <bcardarella@gmail.com>2011-07-30 12:08:26 -0400
commite7330f3d4fa97c683a49457239402f826d8016b7 (patch)
tree360faef0b44aa341a53ccd1bae15bffc04bcaacc /activerecord
parent2b925e8201b3f46860a26f3b801f4fffbc120724 (diff)
downloadrails-e7330f3d4fa97c683a49457239402f826d8016b7.tar.gz
rails-e7330f3d4fa97c683a49457239402f826d8016b7.tar.bz2
rails-e7330f3d4fa97c683a49457239402f826d8016b7.zip
Resolve warnings by instantizing @attrubtes as nil
Diffstat (limited to 'activerecord')
-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