diff options
author | Marcel Molina <marcel@vernix.org> | 2007-12-05 20:17:16 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-12-05 20:17:16 +0000 |
commit | 15b1b889f24ee42f96b1fb74d5cab2438c32056a (patch) | |
tree | 4d872ed6670f4d9e8ef5ee31e42c0170150a9c54 /railties/helpers/test_helper.rb | |
parent | 68261d4b27ad79ad14779b65c98f832c5eaed18e (diff) | |
download | rails-15b1b889f24ee42f96b1fb74d5cab2438c32056a.tar.gz rails-15b1b889f24ee42f96b1fb74d5cab2438c32056a.tar.bz2 rails-15b1b889f24ee42f96b1fb74d5cab2438c32056a.zip |
Add warning to documentation about using transactional fixtures when the code under test uses transactions itself. Closes #7548 [thijsv]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/helpers/test_helper.rb')
-rw-r--r-- | railties/helpers/test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/helpers/test_helper.rb b/railties/helpers/test_helper.rb index f91c6a16b2..9f1926950f 100644 --- a/railties/helpers/test_helper.rb +++ b/railties/helpers/test_helper.rb @@ -15,6 +15,10 @@ class Test::Unit::TestCase # in MySQL. Turn off transactional fixtures in this case; however, if you # don't care one way or the other, switching from MyISAM to InnoDB tables # is recommended. + # + # The only drawback to using transactional fixtures is when you actually + # need to test transactions. Since your test is bracketed by a transaction, + # any transactions started in your code will be automatically rolled back. self.use_transactional_fixtures = true # Instantiated fixtures are slow, but give you @david where otherwise you |