Add missing fixtures for #3937.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2006-02-28 17:46:16 +00:00
parent c62c392289
commit 1b3bae967d
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
sub_special_1:
id: 100
name: A special category in a subdir file
type: SpecialCategory
sub_special_2:
id: 101
name: Another special category
type: SpecialCategory

View File

@@ -0,0 +1,4 @@
sub_special_3:
id: 102
name: A special category in an arbitrarily named subsubdir file
type: SpecialCategory

View File

@@ -295,7 +295,7 @@ class HasAndBelongsToManyScopingTest< Test::Unit::TestCase
end
def test_forwarding_to_dynamic_finders
assert_equal 6, Category.find_all_by_type('SpecialCategory').size
assert_equal 4, Category.find_all_by_type('SpecialCategory').size
assert_equal 0, @welcome.categories.find_all_by_type('SpecialCategory').size
assert_equal 2, @welcome.categories.find_all_by_type('Category').size
end