提交 d21a4543 编写于 作者: E Emilio Tagua

No need to test agaisnt target.

上级 35608694
......@@ -116,7 +116,7 @@ def test_parent_instance_should_be_shared_with_replaced_via_accessor_children
m = Author.first
i = Post.new(:title => 'Industrial Revolution Re-enactment', :body => 'Lorem ipsum')
m.posts = [i]
assert_same m, i.author.target
assert_same m, i.author
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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册