Skip to content
This repository
Browse code

Add create_fixtures method for tests

  • Loading branch information...
commit 5fe543b6294df44d0e7670b78347564874a2f5e2 1 parent 160b8a8
Jeremy Kemper authored November 15, 2008

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  activerecord/test/cases/helper.rb
4  activerecord/test/cases/helper.rb
@@ -62,4 +62,8 @@ class ActiveSupport::TestCase
62 62
   self.fixture_path = FIXTURES_ROOT
63 63
   self.use_instantiated_fixtures  = false
64 64
   self.use_transactional_fixtures = true
  65
+
  66
+  def create_fixtures(*table_names, &block)
  67
+    Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block)
  68
+  end
65 69
 end

0 notes on commit 5fe543b

Please sign in to comment.
Something went wrong with that request. Please try again.