aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2011-02-18 15:44:23 -0300
committerEmilio Tagua <miloops@gmail.com>2011-02-18 15:44:23 -0300
commiteb23b2247d84df104bccb456b45e6e61b8157ef8 (patch)
treeba91cc037e3d020a35bc60740a5f2af20a6d2bc9 /activerecord/test/cases/associations
parentd21a454327d4f4751fc4fa6260f03f9961191336 (diff)
downloadrails-eb23b2247d84df104bccb456b45e6e61b8157ef8.tar.gz
rails-eb23b2247d84df104bccb456b45e6e61b8157ef8.tar.bz2
rails-eb23b2247d84df104bccb456b45e6e61b8157ef8.zip
Should use "=" instead "replace" after this commit: 1644663ba7f678d178deab2bf1629dc05626f85b
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/identity_map_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/identity_map_test.rb b/activerecord/test/cases/associations/identity_map_test.rb
index 37ec3b846e..73ea13fa7a 100644
--- a/activerecord/test/cases/associations/identity_map_test.rb
+++ b/activerecord/test/cases/associations/identity_map_test.rb
@@ -128,7 +128,7 @@ class InverseHasManyIdentityMapTest < ActiveRecord::TestCase
def test_parent_instance_should_be_shared_with_replaced_via_method_children
m = Author.first
i = Post.new(:title => 'Industrial Revolution Re-enactment', :body => 'Lorem ipsum')
- m.posts.replace([i])
+ m.posts = [i]
assert_not_nil i.author
assert_equal m.name, i.author.name, "Name of man should be the same before changes to parent instance"
m.name = 'Bongo'