aboutsummaryrefslogtreecommitdiffstats
path: root/railties/helpers/test_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-15 17:47:46 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-15 17:47:46 +0000
commitd72201e43801994ade896a9706f0960589e3e8a7 (patch)
treed254a44ebdaf3b002f287704084101c2bddc828a /railties/helpers/test_helper.rb
parentccd18dc65008ebb44bfb0e72a8267991838f9744 (diff)
downloadrails-d72201e43801994ade896a9706f0960589e3e8a7.tar.gz
rails-d72201e43801994ade896a9706f0960589e3e8a7.tar.bz2
rails-d72201e43801994ade896a9706f0960589e3e8a7.zip
Backed out of setting testing settings through initializer as that would break backwards compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/helpers/test_helper.rb')
-rw-r--r--railties/helpers/test_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/helpers/test_helper.rb b/railties/helpers/test_helper.rb
index 15961ba258..0a4be59572 100644
--- a/railties/helpers/test_helper.rb
+++ b/railties/helpers/test_helper.rb
@@ -3,5 +3,11 @@ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
class Test::Unit::TestCase
+ # Turn off transactional fixtures if you're working with MyISAM tables in MySQL
+ self.use_transactional_fixtures = true
+
+ # Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david)
+ self.use_instantiated_fixtures = false
+
# Add more helper methods to be used by all tests here...
end \ No newline at end of file