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: 3480430a0da704195ed82b4d1b7a9369e1833bdd (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_file = Rails.root.join(Gitlab::Database::QueryAnalyzers::QueryRecorder.log_file)
    File.write(log_file, '') if File.exist?(log_file)
  end
end