diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-17 19:36:44 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-17 19:36:44 +0000 |
commit | 060b9b16aa4104858c13e4fd467b05c8e4fda127 (patch) | |
tree | e03e995f2b19d61f2d883bea9951fbd609c129c5 /activerecord/test | |
parent | 78a732bf3ffaab0788c2962d03a059b3a8324a5f (diff) | |
download | rails-060b9b16aa4104858c13e4fd467b05c8e4fda127.tar.gz rails-060b9b16aa4104858c13e4fd467b05c8e4fda127.tar.bz2 rails-060b9b16aa4104858c13e4fd467b05c8e4fda127.zip |
Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/fixtures_test.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb index c83b4babf5..30acb945d1 100755 --- a/activerecord/test/fixtures_test.rb +++ b/activerecord/test/fixtures_test.rb @@ -136,3 +136,23 @@ class TransactionalFixturesTest < Test::Unit::TestCase assert_not_nil @first end end + + +class MultipleFixturesTest < Test::Unit::TestCase + fixtures :topics + fixtures :developers, :accounts + + def test_fixture_table_names + assert_equal([:topics, :developers, :accounts], fixture_table_names) + end +end + + +class OverlappingFixturesTest < Test::Unit::TestCase + fixtures :topics, :developers + fixtures :developers, :accounts + + def test_fixture_table_names + assert_equal([:topics, :developers, :accounts], fixture_table_names) + end +end |