Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 15b1b889f24ee42f96b1fb74d5cab2438c32056a 1 parent 68261d4
Marcel Molina authored
Showing with 6 additions and 0 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +4 −0 railties/helpers/test_helper.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Add warning to documentation about using transactional fixtures when the code under test uses transactions itself. Closes #7548 [thijsv]
+
* Update Prototype to 1.6.0.1. [sam]
* Update script.aculo.us to 1.8.0.1. [madrobby]
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.