Skip to content

Commit

Permalink
Resolve warnings by instantizing @attrubtes as nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Jul 30, 2011
1 parent 2b925e8 commit e7330f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/test/cases/attribute_methods_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7330f3

Please sign in to comment.