Sha256: f9927a22b2f0c4964ca16134036ee185bef7fc2d8881cf0644fc004f6cd3c6e9

Contents?: true

Size: 679 Bytes

Versions: 4

Compression:

Stored size: 679 Bytes

Contents

ENV["HEROKU_CONFIG_TEST"] = "1"

# CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage
# require 'simplecov'
# SimpleCov.start

require "pp"
require "byebug"
root = File.expand_path("../", File.dirname(__FILE__))
require "#{root}/lib/heroku-config"

module Helper
  def execute(cmd)
    puts "Running: #{cmd}" if show_command?
    out = `#{cmd}`
    puts out if show_command?
    out
  end

  # Added SHOW_COMMAND because DEBUG is also used by other libraries like
  # bundler and it shows its internal debugging logging also.
  def show_command?
    ENV['DEBUG'] || ENV['SHOW_COMMAND']
  end
end

RSpec.configure do |c|
  c.include Helper
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku-config-0.4.0 spec/spec_helper.rb
heroku-config-0.3.0 spec/spec_helper.rb
heroku-config-0.2.0 spec/spec_helper.rb
heroku-config-0.1.0 spec/spec_helper.rb