aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-05-19 19:12:25 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-05-19 19:12:56 -0700
commit1b0128c5413ace12dee45e9db328cff866a5bb06 (patch)
treee267b53ed4ce6d1f15849134eaf43e6acf91da76 /activerecord/test/cases
parenta34cc42a2c29928bcdc75b700343f978a9524e58 (diff)
downloadrails-1b0128c5413ace12dee45e9db328cff866a5bb06.tar.gz
rails-1b0128c5413ace12dee45e9db328cff866a5bb06.tar.bz2
rails-1b0128c5413ace12dee45e9db328cff866a5bb06.zip
Don't rely on association proxying object_id. [#225 state:resolved]
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb
index b8ec9117af..4382ba17ef 100644
--- a/activerecord/test/cases/associations/belongs_to_associations_test.rb
+++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -54,8 +54,8 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
original_proxy = citibank.firm
citibank.firm = another_firm
- assert_equal first_firm.object_id, original_proxy.object_id
- assert_equal another_firm.object_id, citibank.firm.object_id
+ assert_equal first_firm.object_id, original_proxy.target.object_id
+ assert_equal another_firm.object_id, citibank.firm.target.object_id
end
def test_creating_the_belonging_object