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

debug_with_puts.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8599cc7d40c6e2f4c518e190acda18ebf411b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

# TODO: Remove the debug_with_puts statements below! Used for debugging purposes.
# TODO: https://gitlab.com/gitlab-org/quality/engineering-productivity/team/-/issues/323#note_1688925316
module DebugWithPuts
  def debug_with_puts(message)
    return unless ENV['CI'] # rubocop:disable RSpec/AvoidConditionalStatements -- Debug information only in the CI

    warn "[#{Time.current}] #{message}"
  end

  module_function :debug_with_puts
end