Permalink
Browse files

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
  • Loading branch information...
1 parent e04e82b commit 07afb1fd42695b8b2898ba4d51e2d7fd9426ae95 @dhh dhh committed Jul 4, 2005
Showing with 6 additions and 6 deletions.
  1. +6 −6 railties/helpers/test_helper.rb
@@ -11,16 +11,16 @@
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
# Turn these on to use transactional fixtures with table_name(:fixture_name) instantiation of fixtures
# 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

0 comments on commit 07afb1f

Please sign in to comment.