Sha256: c00b9e9625bd3f7116707d89cad02a7f19ddec579d614fdcd3cc01e8d6b62734
Contents?: true
Size: 1.08 KB
Versions: 11
Compression:
Stored size: 1.08 KB
Contents
ENV['TEST'] = '1' # Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails ENV['HOME'] = "spec/fixtures/home" require "pp" require 'ostruct' require 'pry' root = File.expand_path('../../', __FILE__) require "#{root}/lib/jack" require "#{root}/spec/support/fake_project" module Helpers # TEST=1 DEBUG=1 bin/jack config diff hi-web-stag-1 --root spec/fixtures/project --noop --sure def execute(cmd) puts "Running: #{cmd}" if ENV['DEBUG'] out = `#{cmd}` puts out if ENV['DEBUG'] out end def test_options(env_name="hi-web-stag-1") { noop: true, mute: true, sure: true, root: @root, env_name: env_name } end def fake_project return @fake_project if @fake_project @fake_project = FakeProject.new(@root) @fake_project.create_eb_config @fake_project end end RSpec.configure do |c| c.include Helpers c.before :all do @root = "spec/fixtures/project" # @root is being treated as a global with specs fake_project end c.after :all do FileUtils.rm_f("#{@root}/.gitignore") end end
Version data entries
11 entries across 11 versions & 1 rubygems