Sha256: 44a5cc6f4961abfaaba175a8a6f21e53c46491c3edbaeddbc04fed8ae9d2f8cb
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
ENV["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/<%= project_name %>" 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-template-3.2.0 | lib/templates/default/spec/spec_helper.rb.tt |