Permalink
Browse files

Resolve warnings by instantizing @attrubtes as nil

  • Loading branch information...
1 parent 2b925e8 commit e7330f3d4fa97c683a49457239402f826d8016b7 @bcardarella bcardarella committed Jul 30, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/attribute_methods_test.rb
@@ -113,6 +113,7 @@ def test_respond_to_with_allocated_object
# 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

0 comments on commit e7330f3

Please sign in to comment.