Sha256: 16879127ad2584343f45167f30d79f2c406594a08b05167bb4f7965c830a654c

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

ENV["TEST"] = "1"

# require "simplecov"
# SimpleCov.start

require "pp"

root = File.expand_path("../../", __FILE__)
require "#{root}/lib/USER_PROVIDED_NAME"

module Helpers
  def execute(cmd)
    puts "Running: #{cmd}" if ENV["DEBUG"]
    out = `#{cmd}`
    puts out if ENV["DEBUG"]
    out
  end
end

RSpec.configure do |c|
  c.include Helpers
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thor_template-2.2.1 lib/starter_project/spec/spec_helper.rb
thor_template-2.2.0 lib/starter_project/spec/spec_helper.rb
thor_template-2.1.1 lib/starter_project/spec/spec_helper.rb
thor_template-2.1.0 lib/starter_project/spec/spec_helper.rb