mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
16 lines
442 B
Ruby
16 lines
442 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative 'db_cleaner'
|
|
|
|
RSpec.configure do |config|
|
|
include DbCleaner
|
|
|
|
# Ensure the database is empty at the start of the suite run with :deletion strategy
|
|
# neither the sequence is reset nor the tables are vacuum, but this provides
|
|
# better I/O performance on machines with slower storage
|
|
config.before(:suite) do
|
|
setup_database_cleaner
|
|
DatabaseCleaner.clean_with(:deletion)
|
|
end
|
|
end
|