Skip to content

Commit

Permalink
Move transaction strategy to before each block
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Aug 13, 2024
1 parent 7b148c6 commit 3b5cc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/database_cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# See the docs here: https://www.rubydoc.info/github/DatabaseCleaner/database_cleaner
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end

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

Expand Down

0 comments on commit 3b5cc1c

Please sign in to comment.