debian-mirror-gitlab/spec/support/database/query_recorder.rb
2023-01-12 18:35:48 +00:00

9 lines
307 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
# Truncate the query_recorder log file before starting the suite
config.before(:suite) do
log_path = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder::LOG_FILE)
File.write(log_path, '') if File.exist?(log_path)
end
end