Sha256: 5100c05451050b97bb59bf508e7fc533fe661e00d7431138c238341b95543a37
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
ENV["TS_ENV"] = "test" require "terraspace" require "rspec/terraspace" module Helper def execute(cmd) puts "Running: #{cmd}" if ENV['SHOW_COMMAND'] out = `#{cmd}` puts out if ENV['SHOW_COMMAND'] out end end RSpec.configure do |c| c.before(:all) do Dir.glob("config/helpers/**/*.rb").each do |path| require "./#{path}" name = path.sub(%r{config/helpers/},'').sub('.rb','').camelize mod = "Terraspace::Project::#{name}" c.include mod.constantize end end end
Version data entries
4 entries across 4 versions & 1 rubygems