aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/thread_safety_test.rb
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-06-10 14:58:02 +0000
committerJamis Buck <jamis@37signals.com>2005-06-10 14:58:02 +0000
commit2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75 (patch)
treeb65523d2f9c2d0b79bc0b65157e966ee36ebd1a2 /activerecord/test/thread_safety_test.rb
parent7f9ffb2ebf1a0230368f54a6372cb7196c90177e (diff)
downloadrails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.gz
rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.bz2
rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.zip
Do not use instantiated fixtures (in general) in tests. Also, support the use of transactional fixtures by setting the AR_TX_FIXTURES environment variable to "yes".
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/thread_safety_test.rb')
-rw-r--r--activerecord/test/thread_safety_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/test/thread_safety_test.rb b/activerecord/test/thread_safety_test.rb
index 635240c6af..c57c352afc 100644
--- a/activerecord/test/thread_safety_test.rb
+++ b/activerecord/test/thread_safety_test.rb
@@ -2,8 +2,11 @@ require 'abstract_unit'
require 'fixtures/topic'
class ThreadSafetyTest < Test::Unit::TestCase
+ self.use_transactional_fixtures = false
+
+ fixtures :topics
+
def setup
- @topics = create_fixtures "topics"
@threads = []
end