aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 09:24:31 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 09:24:31 +0000
commite04e82ba82e919c03dbce255de81ad30f68614cd (patch)
treed7962caed38711ebb9e6076e05bc9b31699f7f2d /railties
parentc570ebc1431f0954c6da84b7477688c9ace89830 (diff)
downloadrails-e04e82ba82e919c03dbce255de81ad30f68614cd.tar.gz
rails-e04e82ba82e919c03dbce255de81ad30f68614cd.tar.bz2
rails-e04e82ba82e919c03dbce255de81ad30f68614cd.zip
Made it even easier to turn on transactional fixtures
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/helpers/test_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/helpers/test_helper.rb b/railties/helpers/test_helper.rb
index 5328ccdf5f..314b8ae3bd 100644
--- a/railties/helpers/test_helper.rb
+++ b/railties/helpers/test_helper.rb
@@ -16,3 +16,11 @@ def create_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