diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 09:27:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 09:27:55 +0000 |
commit | 07afb1fd42695b8b2898ba4d51e2d7fd9426ae95 (patch) | |
tree | be1d28a6f6ff5393b5b06081afffe6e66a0dd5a5 /railties | |
parent | e04e82ba82e919c03dbce255de81ad30f68614cd (diff) | |
download | rails-07afb1fd42695b8b2898ba4d51e2d7fd9426ae95.tar.gz rails-07afb1fd42695b8b2898ba4d51e2d7fd9426ae95.tar.bz2 rails-07afb1fd42695b8b2898ba4d51e2d7fd9426ae95.zip |
Made it even easier to turn on transactional fixtures
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/helpers/test_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/helpers/test_helper.rb b/railties/helpers/test_helper.rb index 314b8ae3bd..72a8ca086b 100644 --- a/railties/helpers/test_helper.rb +++ b/railties/helpers/test_helper.rb @@ -11,10 +11,6 @@ require 'action_controller/test_process' require 'action_web_service/test_invoke' require 'breakpoint' -def create_fixtures(*table_names) - Fixtures.create_fixtures(File.dirname(__FILE__) + "/fixtures", table_names) -end - Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" class Test::Unit::TestCase @@ -22,5 +18,9 @@ class Test::Unit::TestCase # self.use_transactional_fixtures = true # self.use_instantiated_fixtures = false - # Add helper methods to be used by all tests here -end + def create_fixtures(*table_names) + Fixtures.create_fixtures(File.dirname(__FILE__) + "/fixtures", table_names) + end + + # Add more helper methods to be used by all tests here... +end
\ No newline at end of file |