mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
330823687b
commit
f50a95819b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue