mirror of
https://github.com/github/rails.git
synced 2026-01-28 15:58:03 -05:00
Don't rely on association proxying object_id. [#225 state:resolved]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user