fix test so that it passes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson
2006-03-22 01:03:25 +00:00
parent 330823687b
commit f50a95819b

View File

@@ -313,7 +313,7 @@ class AssociationsJoinModelTest < Test::Unit::TestCase
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