diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-05-19 19:12:25 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-05-19 19:12:56 -0700 |
commit | 1b0128c5413ace12dee45e9db328cff866a5bb06 (patch) | |
tree | e267b53ed4ce6d1f15849134eaf43e6acf91da76 /activerecord/test/cases/associations/belongs_to_associations_test.rb | |
parent | a34cc42a2c29928bcdc75b700343f978a9524e58 (diff) | |
download | rails-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/associations/belongs_to_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 4 |
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 |