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 | |
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')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/helpers/test_helper.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index a5a2330633..99502c9c40 100644 --- a/railties/CHANGELOG +++ b/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] 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 |