Created
August 26, 2013 20:05
-
-
Save jdelStrother/6345998 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| RSpec.configure do |config| | |
| no_transactions = lambda do |example| | |
| self.use_transactional_fixtures = false | |
| DatabaseCleaner.start | |
| example.run | |
| DatabaseCleaner.clean | |
| end | |
| config.around(:type=>:feature, &no_transactions) | |
| config.around(transanctionless: true, &no_transactions.dup) # for some reason rspec loses the previous use of this block if you don't dup it. | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment