ENV['TEST'] = '1' # Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails ENV['HOME'] = "spec/fixtures/home" require "pp" require "byebug" root = File.expand_path('../../', __FILE__) require "#{root}/lib/ufo" module Helpers def execute(cmd) puts "Running: #{cmd.colorize(:magenta)}" if ENV['DEBUG'] out = `#{cmd}` puts out if ENV['DEBUG'] out end def create_starter_project_fixture FileUtils.rm_rf("spec/fixtures/hi") execute("bin/ufo init --app hi --image tongueroo/hi --project-root spec/fixtures/hi") end end RSpec.configure do |c| c.include Helpers c.before(:each) do end end