This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TransactionalFixtureDisabler | |
def self.included(klass) | |
klass.teardown :restore_transactional_fixture_status | |
end | |
# call this at the top of your test if you need to disable | |
# transactional fixtures. this might be the case if: | |
# - you're testing after_commit or after_rollback callbacks | |
# on models |