Skip to content
This repository
Browse code

Resolve warnings by instantizing @attrubtes as nil

  • Loading branch information...
commit 3d87d01dad08f0ff84d38b1211ba8de0364e0efb 1 parent 7598155
Brian Cardarella bcardarella authored fxn committed

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  activerecord/test/cases/attribute_methods_test.rb
1  activerecord/test/cases/attribute_methods_test.rb
@@ -113,6 +113,7 @@ def test_respond_to_with_allocated_object
113 113 # by inspecting it.
114 114 def test_allocated_object_can_be_inspected
115 115 topic = Topic.allocate
  116 + topic.instance_eval { @attributes = nil }
116 117 assert_nothing_raised { topic.inspect }
117 118 assert topic.inspect, "#<Topic not initialized>"
118 119 end

0 comments on commit 3d87d01

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