Sha256: 5f69c0f8145245c4204fbeabd61db2523dab434e419f76b9d6cedfe4dca302df

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

ENV["TERRAFORM_BUNDLER_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/terraspace-bundler"

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

2 entries across 2 versions & 1 rubygems

Version Path
terraspace-bundler-0.2.0 spec/spec_helper.rb
terraspace-bundler-0.1.0 spec/spec_helper.rb