spec/spec_helper.rb in codebuild-0.6.1 vs spec/spec_helper.rb in codebuild-0.6.2
- old
+ new
@@ -2,9 +2,15 @@
# CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage
# require 'simplecov'
# SimpleCov.start
+# Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails
+ENV['HOME'] = File.join(Dir.pwd,'spec/fixtures/home')
+
+ENV['CB_ROOT'] = "spec/fixtures/app"
+
+
require "pp"
require "byebug"
root = File.expand_path("../", File.dirname(__FILE__))
require "#{root}/lib/codebuild"