spec/spec_helper.rb in ufo-0.1.6 vs spec/spec_helper.rb in ufo-1.0.0
- old
+ new
@@ -9,11 +9,11 @@
root = File.expand_path('../../', __FILE__)
require "#{root}/lib/ufo"
module Helpers
def execute(cmd)
- puts "Running: #{cmd}" if ENV['DEBUG']
+ puts "Running: #{cmd.colorize(:magenta)}" if ENV['DEBUG']
out = `#{cmd}`
puts out if ENV['DEBUG']
out
end
@@ -23,6 +23,11 @@
end
end
RSpec.configure do |c|
c.include Helpers
+
+ c.before(:each) do
+ # ensures we never called real aws api since the fixture home folder does not have ~/.aws/credentails setup
+ ENV['HOME'] = "spec/fixtures/home"
+ end
end