Sha256: 69c5478a84c09d167259a7069ad14b3efe27b00d3932f90acd1885f4bb629ad5
Contents?: true
Size: 721 Bytes
Versions: 3
Compression:
Stored size: 721 Bytes
Contents
ENV['TEST'] = '1' # CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage # require 'simplecov' # SimpleCov.start require "pp" root = File.expand_path('../../', __FILE__) require "#{root}/lib/cli-template" module Helpers 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 Helpers c.before(:all) do FileUtils.rm_rf("tmp") FileUtils.mkdir_p("tmp") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cli-template-3.2.0 | spec/spec_helper.rb |
cli-template-3.1.0 | spec/spec_helper.rb |
cli-template-3.0.0 | spec/spec_helper.rb |