diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-02-28 17:46:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-02-28 17:46:16 +0000 |
commit | 1b3bae967dbc2a55a9dffb267a93a6a470f27e53 (patch) | |
tree | 3950569a951be4ec7d2a2be3aa783a91dd2c7af0 | |
parent | c62c39228975df552a716989dc17050628735bee (diff) | |
download | rails-1b3bae967dbc2a55a9dffb267a93a6a470f27e53.tar.gz rails-1b3bae967dbc2a55a9dffb267a93a6a470f27e53.tar.bz2 rails-1b3bae967dbc2a55a9dffb267a93a6a470f27e53.zip |
Add missing fixtures for #3937.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
3 files changed, 14 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/categories/special_categories.yml b/activerecord/test/fixtures/categories/special_categories.yml new file mode 100644 index 0000000000..517fc8f7ad --- /dev/null +++ b/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 diff --git a/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml b/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml new file mode 100644 index 0000000000..389a04a5aa --- /dev/null +++ b/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 diff --git a/activerecord/test/method_scoping_test.rb b/activerecord/test/method_scoping_test.rb index d95fc1dcc8..551d7c1dd3 100644 --- a/activerecord/test/method_scoping_test.rb +++ b/activerecord/test/method_scoping_test.rb @@ -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 |