mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Should use "=" instead "replace" after this commit: 1644663ba7
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user