mirror of
https://github.com/github/rails.git
synced 2026-02-17 09:32:18 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user