diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 18:46:56 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 18:46:56 -0800 |
commit | 542cb5c327f92d3f6ae6159a54e86949441f095e (patch) | |
tree | a299d272ac83612f0b1cf8233b8158f2585242f2 /activerecord/test/cases | |
parent | 10b1887a719588c1252906169f9d3d12ee1387c6 (diff) | |
download | rails-542cb5c327f92d3f6ae6159a54e86949441f095e.tar.gz rails-542cb5c327f92d3f6ae6159a54e86949441f095e.tar.bz2 rails-542cb5c327f92d3f6ae6159a54e86949441f095e.zip |
fix warnings, stop using global variables
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index fb6a239545..ffcc7a081a 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -848,13 +848,12 @@ class TestNestedAttributesWithNonStandardPrimaryKeys < ActiveRecord::TestCase def test_attr_accessor_of_child_should_be_value_provided_during_update_attributes @owner = owners(:ashley) @pet1 = pets(:chew) - assert_equal nil, $current_user attributes = {:pets_attributes => { "1"=> { :id => @pet1.id, :name => "Foo2", :current_user => "John", :_destroy=>true }}} @owner.update_attributes(attributes) - assert_equal 'John', $after_destroy_callback_output + assert_equal 'John', Pet.after_destroy_output end end |