debian-mirror-gitlab/spec/knapsack_env.rb
2021-04-29 21:17:54 +05:30

11 lines
231 B
Ruby

# 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