Sha256: 4fc822dfef52e2f8aab814f11fb82dc668c9503e92aadf025e3de53c89d26ae3
Contents?: true
Size: 713 Bytes
Versions: 22
Compression:
Stored size: 713 Bytes
Contents
ENV["<%= extension_underscore_name.upcase %>_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/<%= extension_name %>" 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
22 entries across 22 versions & 1 rubygems