From cb45ee344d5ec6974b78dc593e4eaef2101e3d42 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Fri, 10 Oct 2008 17:02:47 +0200 Subject: Remove the functionality introduce in 28d3390 There are several situations it doesn't cater for, and the inconsistency isn't worth blocking 2.2. --- activerecord/test/cases/associations_test.rb | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'activerecord/test/cases/associations_test.rb') diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb index cde451de0e..056a29438a 100644 --- a/activerecord/test/cases/associations_test.rb +++ b/activerecord/test/cases/associations_test.rb @@ -182,26 +182,6 @@ class AssociationProxyTest < ActiveRecord::TestCase assert_nil p.author.reset end - def test_reset_loads_association_next_time - welcome = posts(:welcome) - david = authors(:david) - author_assoc = welcome.author - - assert_equal david, welcome.author # So we can be sure the test works correctly - author_assoc.reset - assert !author_assoc.loaded? - assert_nil author_assoc.target - assert_equal david, welcome.author - end - - def test_assigning_association_id_after_reload - welcome = posts(:welcome) - welcome.reload - assert_nothing_raised do - welcome.author_id = authors(:david).id - end - end - def test_reload_returns_assocition david = developers(:david) assert_nothing_raised do -- cgit v1.2.3