diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-15 12:31:54 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-15 12:31:54 -0800 |
commit | 5fe543b6294df44d0e7670b78347564874a2f5e2 (patch) | |
tree | 754bdea6c26bed8ede3c64d639ffac2de998f4bf | |
parent | 160b8a83444cd3784cba2396435ef06dba234122 (diff) | |
download | rails-5fe543b6294df44d0e7670b78347564874a2f5e2.tar.gz rails-5fe543b6294df44d0e7670b78347564874a2f5e2.tar.bz2 rails-5fe543b6294df44d0e7670b78347564874a2f5e2.zip |
Add create_fixtures method for tests
-rw-r--r-- | activerecord/test/cases/helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 02b39d7480..2382bfe4fe 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -62,4 +62,8 @@ class ActiveSupport::TestCase self.fixture_path = FIXTURES_ROOT self.use_instantiated_fixtures = false self.use_transactional_fixtures = true + + def create_fixtures(*table_names, &block) + Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block) + end end |