Sha256: a755ad9b3bfdd6c09ced565d6bbb1f7a4b7d14d0fec79ce32c44464c960922e3
Contents?: true
Size: 803 Bytes
Versions: 4
Compression:
Stored size: 803 Bytes
Contents
ENV["TEST"] = "1" # Ensures aws api never called. Fixture home does not contain ~/.aws/credentials ENV['HOME'] = "spec/fixtures/home" # CodeClimate test coverage: https://docs.codeclimate.com/docs/configuring-test-coverage # require 'simplecov' # SimpleCov.start require "pp" require "byebug" root = File.expand_path("../", File.dirname(__FILE__)) require "#{root}/lib/aws-rotate" require 'webmock/rspec' module Helper def execute(cmd) puts "Running: #{cmd}" if show_command? out = `#{cmd}` puts out if show_command? out end # Added SHOW_COMMAND because DEBUG is also used by other libraries like # bundler and it shows its internal debugging logging also. def show_command? ENV['DEBUG'] || ENV['SHOW_COMMAND'] end end RSpec.configure do |c| c.include Helper end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aws-rotate-0.4.0 | spec/spec_helper.rb |
aws-rotate-0.3.0 | spec/spec_helper.rb |
aws-rotate-0.2.0 | spec/spec_helper.rb |
aws-rotate-0.1.0 | spec/spec_helper.rb |