Skip to content
Browse files

Merge pull request #2364 from bcardarella/resolve_undefined_instance_…

…attributes_instance_variable

Resolve warnings by instantizing @attrubtes as nil
  • Loading branch information...
2 parents 2b925e8 + e7330f3 commit 4c85c4ed95cb323e749d200d238a3f4898a688dd @josevalim josevalim 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

0 comments on commit 4c85c4e

Please sign in to comment.
Something went wrong with that request. Please try again.