Sha256: 969378d01a0d96faf9f971f01b2ef4807e136a4301a98eca6a4bee2967d9994a
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 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/<%= 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
3 entries across 3 versions & 1 rubygems