gitlab-org--gitlab-foss/spec/knapsack_env.rb

12 lines
231 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'knapsack'
module KnapsackEnv
def self.configure!
return unless ENV['CI'] && ENV['KNAPSACK_GENERATE_REPORT'] && !ENV['NO_KNAPSACK']
Knapsack::Adapters::RSpecAdapter.bind
end
end