Created
May 18, 2012 23:06
-
-
Save mattbrictson/2728030 to your computer and use it in GitHub Desktop.
Revisions
-
mattbrictson revised this gist
May 18, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ gem 'database_cleaner', group: :test -
mattbrictson created this gist
May 18, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ RSpec.configure do |config| # ... config.use_transactional_fixtures = false config.before(:each) do DatabaseCleaner.strategy = if example.metadata[:js] :truncation else :transaction end DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end