Sha256: a6e971e8afaf929d2020079f0365b925185caeb5709447dfd559548105c76788

Contents?: true

Size: 681 Bytes

Versions: 17

Compression:

Stored size: 681 Bytes

Contents

ENV["AWS_MFA_SECURE_TEST"] = "1"

# 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-mfa-secure"

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

17 entries across 17 versions & 1 rubygems

Version Path
aws-mfa-secure-0.4.5 spec/spec_helper.rb
aws-mfa-secure-0.4.4 spec/spec_helper.rb
aws-mfa-secure-0.4.3 spec/spec_helper.rb
aws-mfa-secure-0.4.2 spec/spec_helper.rb
aws-mfa-secure-0.4.1 spec/spec_helper.rb
aws-mfa-secure-0.4.0 spec/spec_helper.rb
aws-mfa-secure-0.3.8 spec/spec_helper.rb
aws-mfa-secure-0.3.7 spec/spec_helper.rb
aws-mfa-secure-0.3.6 spec/spec_helper.rb
aws-mfa-secure-0.3.5 spec/spec_helper.rb
aws-mfa-secure-0.3.4 spec/spec_helper.rb
aws-mfa-secure-0.3.3 spec/spec_helper.rb
aws-mfa-secure-0.3.2 spec/spec_helper.rb
aws-mfa-secure-0.3.1 spec/spec_helper.rb
aws-mfa-secure-0.3.0 spec/spec_helper.rb
aws-mfa-secure-0.2.0 spec/spec_helper.rb
aws-mfa-secure-0.1.0 spec/spec_helper.rb