Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve warnings by instantizing @attrubtes as nil

  • Loading branch information...
commit 3d87d01dad08f0ff84d38b1211ba8de0364e0efb 1 parent 7598155
@bcardarella bcardarella authored fxn committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  activerecord/test/cases/attribute_methods_test.rb
View
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.