Welcome to mirror list, hosted at ThFree Co, Russian Federation.

query_recorder.rb « database « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1050120e5284a033454acf9740b4e3a27a9a85d8 (plain)
1
2
3
4
5
6
7
8
9
# 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