Skip to content

Commit

Permalink
Don't skip database clean when skipping pretest db setup (#8909)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT authored Feb 13, 2024
1 parent 164084c commit 7b99d90
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions WcaOnRails/spec/support/database_cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# frozen_string_literal: true

RSpec.configure do |config|
unless EnvConfig.SKIP_PRETEST_SETUP?
config.before(:suite) do
DatabaseCleaner.clean_with :truncation
TestDbManager.fill_tables
end
config.before(:suite) do
DatabaseCleaner.clean_with :truncation
TestDbManager.fill_tables unless EnvConfig.SKIP_PRETEST_SETUP?
end

config.before(:each) do
Expand Down

0 comments on commit 7b99d90

Please sign in to comment.