diff options
author | Rodrigo Kochenburger <divoxx@gmail.com> | 2008-05-13 22:08:31 -0300 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-05-15 17:56:23 -0700 |
commit | 5a3fd46d42f05a241b3178af60d38fe5e0cebee6 (patch) | |
tree | 0844133721ecd7e58471406459d855702c43ff6b | |
parent | fc02eabf296d6edb74a95174c7322293a54c9492 (diff) | |
download | rails-5a3fd46d42f05a241b3178af60d38fe5e0cebee6.tar.gz rails-5a3fd46d42f05a241b3178af60d38fe5e0cebee6.tar.bz2 rails-5a3fd46d42f05a241b3178af60d38fe5e0cebee6.zip |
Fixing test for named_scope through a has_many :through
The test that checks if a has_many :through association has access to named_scope had a typo and
didn't have the proper fixtures loaded. [#190 state:resolved]
-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 |