From 2487aab99a0c1767502c9f635102607fb4ded05d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 14 Feb 2011 11:25:19 -0800 Subject: fixtures will return a list of tables that may be effected, delete existing fixtures will delete those tables --- activerecord/test/cases/fixtures_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/test') 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) -- cgit v1.2.3