Skip to content
Browse files

Correctly decrement open transactions to fix broken-ness when used wi…

…th Rails 2.3.2's new savepoint implementation of transactions
  • Loading branch information...
1 parent 4d5df0e commit bb536476e6fe7450f8f3fd23796a97092f942b1f @history history committed Mar 20, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/model_stubbing/extensions.rb
View
1 lib/model_stubbing/extensions.rb
@@ -48,6 +48,7 @@ def teardown_fixtures
end
if database?
ActiveRecord::Base.connection.rollback_db_transaction
+ ActiveRecord::Base.connection.decrement_open_transactions
ActiveRecord::Base.verify_active_connections!
end
end

0 comments on commit bb53647

Please sign in to comment.
Something went wrong with that request. Please try again.