Sha256: 3b8b5ef921ca6b550569496b3e16b32da67628e8d60c0b8178bd04fd239d5f24

Contents?: true

Size: 771 Bytes

Versions: 5

Compression:

Stored size: 771 Bytes

Contents

require "rubygems"
require "bundler/setup"
require "minitest/autorun"
require "minitest/pride"

begin
  require 'pry'
rescue LoadError
  # NBD.
end

require "cfn-flow"

Aws.config[:stub_responses] = true
ENV['AWS_REGION'] = 'us-east-1'
ENV['AWS_ACCESS_KEY_ID'] = 'test-key'
ENV['AWS_SECRET_ACCESS_KEY'] = 'test-secret'
ENV['CFN_FLOW_DEV_NAME'] = 'cfn-flow-specs'

class Minitest::Spec
  # From http://git.io/bcfh
  def capture(stream = :stdout)
    begin
      stream = stream.to_s
      eval "$#{stream} = StringIO.new"
      yield
      result = eval("$#{stream}").string
    ensure
      eval("$#{stream} = #{stream.upcase}")
    end

    result
  end

  # Reset env between tests
  before { @orig_env = ENV.to_hash }
  after  { ENV.clear; ENV.update(@orig_env) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cfn-flow-0.2.1 spec/helper.rb
cfn-flow-0.2.0 spec/helper.rb
cfn-flow-0.1.2 spec/helper.rb
cfn-flow-0.1.1 spec/helper.rb
cfn-flow-0.1.0 spec/helper.rb