diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-30 09:11:19 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-30 09:11:19 -0700 |
commit | 4c85c4ed95cb323e749d200d238a3f4898a688dd (patch) | |
tree | 360faef0b44aa341a53ccd1bae15bffc04bcaacc | |
parent | 2b925e8201b3f46860a26f3b801f4fffbc120724 (diff) | |
parent | e7330f3d4fa97c683a49457239402f826d8016b7 (diff) | |
download | rails-4c85c4ed95cb323e749d200d238a3f4898a688dd.tar.gz rails-4c85c4ed95cb323e749d200d238a3f4898a688dd.tar.bz2 rails-4c85c4ed95cb323e749d200d238a3f4898a688dd.zip |
Merge pull request #2364 from bcardarella/resolve_undefined_instance_attributes_instance_variable
Resolve warnings by instantizing @attrubtes as nil
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index b0896fb236..dbf5a1ba76 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -113,6 +113,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase # 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 |