Skip to content

Commit

Permalink
Change DatabaseCleaner settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rhannequin committed May 23, 2017
1 parent d73b186 commit c9fea12
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions spec/support/database_cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end

config.before(:each) do
config.before :suite do
DatabaseCleaner.strategy = :transaction
end

config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean_with :truncation
end

config.before(:each) do
Expand Down

0 comments on commit c9fea12

Please sign in to comment.