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. --- .../test/cases/associations/belongs_to_associations_test.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'activerecord/test/cases/associations') diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 37b6836a89..9c718c4fef 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -47,19 +47,6 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase assert_equal apple.id, citibank.firm_id end - def test_foreign_key_assignment - # Test using an existing record - signals37 = accounts(:signals37) - assert_equal companies(:first_firm), signals37.firm - signals37.firm_id = companies(:another_firm).id - assert_equal companies(:another_firm), signals37.firm - - # Test using a new record - account = Account.new - account.firm_id = companies(:another_firm).id - assert_equal companies(:another_firm), account.firm - end - def test_no_unexpected_aliasing first_firm = companies(:first_firm) another_firm = companies(:another_firm) -- cgit v1.2.3