提交 f50a9581 编写于 作者: R Rick Olson

fix test so that it passes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 33082368
......@@ -313,7 +313,7 @@ def test_self_referential_has_many_through
def test_add_to_self_referential_has_many_through
new_author = Author.create(:name => "Bob")
authors(:david).author_favorites.create :favorite_author => new_author
assert_equal [new_author, authors(:mary)], authors(:david).reload.favorite_authors
assert_equal new_author, authors(:david).reload.favorite_authors.first
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册