diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-05-16 23:44:28 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-16 23:44:28 +0100 |
commit | 17c8cba3a04d715e1063e5adea2b22abce417527 (patch) | |
tree | a733a5c24ba1411968e448185a7097be1151e63a /activerecord | |
parent | 0fc3381aa5359f31b36057d7bfba2e0eb6a3c064 (diff) | |
parent | 46f30f902fb5e705683dea19ec22179c61e5f208 (diff) | |
download | rails-17c8cba3a04d715e1063e5adea2b22abce417527.tar.gz rails-17c8cba3a04d715e1063e5adea2b22abce417527.tar.bz2 rails-17c8cba3a04d715e1063e5adea2b22abce417527.zip |
Merge commit 'mainstream/master'
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 30c074c9d8..9730f93579 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -6,7 +6,7 @@ require 'models/reply' require 'models/author' class NamedScopeTest < ActiveRecord::TestCase - fixtures :posts, :authors, :topics + fixtures :posts, :authors, :topics, :comments def test_implements_enumerable assert !Topic.find(:all).empty? @@ -95,7 +95,7 @@ class NamedScopeTest < ActiveRecord::TestCase end def test_has_many_through_associations_have_access_to_named_scopes - assert_not_equal Comment.containing_the_letter_e, authors(:david).posts + assert_not_equal Comment.containing_the_letter_e, authors(:david).comments assert !Comment.containing_the_letter_e.empty? assert_equal authors(:david).comments & Comment.containing_the_letter_e, authors(:david).comments.containing_the_letter_e |