Sha256: 5135c8e4dd1a26587cfd70988953e7570c2e1c105f195ef114ec0aa0cd21ae47
Contents?: true
Size: 728 Bytes
Versions: 9
Compression:
Stored size: 728 Bytes
Contents
ENV["TEST"] = "1" ENV["FORGER_ENV"] = "test" ENV["FORGER_ROOT"] = "spec/fixtures/demo_project" # Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails ENV['HOME'] = "spec/fixtures/home" require "pp" require "byebug" root = File.expand_path("../", File.dirname(__FILE__)) require "#{root}/lib/forger" 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
9 entries across 9 versions & 1 rubygems