diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-14 11:25:19 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-14 11:25:19 -0800 |
commit | 2487aab99a0c1767502c9f635102607fb4ded05d (patch) | |
tree | 087b750bc22eb3e0e000e34e23b5150d532fdf3d /activerecord/test/cases/fixtures_test.rb | |
parent | 6f4e3ffd0f42c92a00536e7e1356be3e8cf37639 (diff) | |
download | rails-2487aab99a0c1767502c9f635102607fb4ded05d.tar.gz rails-2487aab99a0c1767502c9f635102607fb4ded05d.tar.bz2 rails-2487aab99a0c1767502c9f635102607fb4ded05d.zip |
fixtures will return a list of tables that may be effected, delete existing fixtures will delete those tables
Diffstat (limited to 'activerecord/test/cases/fixtures_test.rb')
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index ee51692f93..2a5d6b2beb 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -188,6 +188,11 @@ class FixturesTest < ActiveRecord::TestCase end end + def test_tables + fixtures = Fixtures.new(Parrot.connection, 'parrots', 'Parrot', FIXTURES_ROOT + "/parrots") + assert_equal %w{parrots parrots_treasures}, fixtures.tables + end + def test_yml_file_in_subdirectory assert_equal(categories(:sub_special_1).name, "A special category in a subdir file") assert_equal(categories(:sub_special_1).class, SpecialCategory) |