summaryrefslogtreecommitdiff
path: root/spec/knapsack_env.rb
blob: 727d18f32e252ab6c94febb7b5abe8e5a882f411 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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