Sha256: c5b4dbf87fcfbe6067b538a09823969a514b4d0da2fc12427c13a1e58cd513e6
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
ENV["TEST"] = "1" # CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage # require 'simplecov' # SimpleCov.start # Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails ENV['HOME'] = File.join(Dir.pwd,'spec/fixtures/home') ENV['CB_ROOT'] = "spec/fixtures/app" require "pp" require "byebug" root = File.expand_path("../", File.dirname(__FILE__)) require "#{root}/lib/codebuild" 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 |
---|---|
codebuild-0.6.3 | spec/spec_helper.rb |
codebuild-0.6.2 | spec/spec_helper.rb |