mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Uncomment test for join model method_missing. Closes #8707 [Giles Bowkett, Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
619f2897f5
commit
e81f1acc33
1 changed files with 2 additions and 2 deletions
|
@ -282,10 +282,10 @@ class AssociationsJoinModelTest < Test::Unit::TestCase
|
|||
assert_equal categories(:general), authors(:david).categories.find(:first, :conditions => "categories.name = 'General'")
|
||||
assert_equal nil, authors(:david).categories.find(:first, :conditions => "categories.name = 'Technology'")
|
||||
end
|
||||
|
||||
|
||||
def test_has_many_class_methods_called_by_method_missing
|
||||
assert_equal categories(:general), authors(:david).categories.find_all_by_name('General').first
|
||||
# assert_equal nil, authors(:david).categories.find_by_name('Technology')
|
||||
assert_equal nil, authors(:david).categories.find_by_name('Technology')
|
||||
end
|
||||
|
||||
def test_has_many_going_through_join_model_with_custom_foreign_key
|
||||
|
|
Loading…
Reference in a new issue