Fix submission scoring during specs

This commit is contained in:
Sebastian Serth
2021-08-17 12:45:26 +02:00
parent 47888f1dbd
commit a0ca15c6ac
2 changed files with 7 additions and 4 deletions

View File

@ -22,8 +22,8 @@ RSpec.configure do |config|
DatabaseCleaner.clean_with(:truncation)
end
config.before do
DatabaseCleaner.strategy = :transaction
config.before do |example|
DatabaseCleaner.strategy = example.metadata[:cleaning_strategy] || :transaction
end
config.before(:each, type: :feature) do