Created
May 2, 2018 23:10
-
-
Save alvinsng/8250abd68363e82a46e9ad89a3f983f9 to your computer and use it in GitHub Desktop.
opendoor_rspec_database_cleaner.rb
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
| # in spec_helper.rb | |
| RSpec.configure do |config| | |
| # other spec configs here | |
| config.around(:each) do |example| | |
| DatabaseCleaner.cleaning do | |
| example.run | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment