aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-15 04:14:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-15 04:14:10 +0000
commite81f1acc33a642df68c32d28202dcf589a79d714 (patch)
treee014a5125c60ce472da49577ce272c558cf22af1
parent619f2897f59850842951982928d14ccacb16ac3b (diff)
downloadrails-e81f1acc33a642df68c32d28202dcf589a79d714.tar.gz
rails-e81f1acc33a642df68c32d28202dcf589a79d714.tar.bz2
rails-e81f1acc33a642df68c32d28202dcf589a79d714.zip
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
-rw-r--r--activerecord/test/associations/join_model_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/associations/join_model_test.rb b/activerecord/test/associations/join_model_test.rb
index d92a0c760a..a10c1b156c 100644
--- a/activerecord/test/associations/join_model_test.rb
+++ b/activerecord/test/associations/join_model_test.rb
@@ -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