Permalink
Browse files

Add missing fixtures for #3937.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c62c392 commit 1b3bae967dbc2a55a9dffb267a93a6a470f27e53 @jeremy jeremy committed Feb 28, 2006
View
9 activerecord/test/fixtures/categories/special_categories.yml
@@ -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
4 activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml
@@ -0,0 +1,4 @@
+sub_special_3:
+ id: 102
+ name: A special category in an arbitrarily named subsubdir file
+ type: SpecialCategory
View
2 activerecord/test/method_scoping_test.rb
@@ -295,7 +295,7 @@ def test_forwarding_of_static_methods
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

0 comments on commit 1b3bae9

Please sign in to comment.