Sha256: bba5b8426138f20b2309f4ead80891da351070261b42f07cfd98da435a34de3d

Contents?: true

Size: 501 Bytes

Versions: 12

Compression:

Stored size: 501 Bytes

Contents

ENV["TEST"] = "1"
ENV["AWS_EC2_ENV"] = "test"
ENV["AWS_EC2_ROOT"] = "spec/fixtures/demo_project"
# Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails
ENV['HOME'] = "spec/fixtures/home"

require "pp"

root = File.expand_path("../../", __FILE__)
require "#{root}/lib/aws-ec2"

module Helpers
  def execute(cmd)
    puts "Running: #{cmd}" if ENV["DEBUG"]
    out = `#{cmd}`
    puts out if ENV["DEBUG"]
    out
  end
end

RSpec.configure do |c|
  c.include Helpers
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
aws-ec2-0.9.0 spec/spec_helper.rb
aws-ec2-0.8.4 spec/spec_helper.rb
aws-ec2-0.8.3 spec/spec_helper.rb
aws-ec2-0.8.2 spec/spec_helper.rb
aws-ec2-0.8.1 spec/spec_helper.rb
aws-ec2-0.8.0 spec/spec_helper.rb
aws-ec2-0.7.0 spec/spec_helper.rb
aws-ec2-0.6.0 spec/spec_helper.rb
aws-ec2-0.5.2 spec/spec_helper.rb
aws-ec2-0.5.1 spec/spec_helper.rb
aws-ec2-0.5.0 spec/spec_helper.rb
aws-ec2-0.4.0 spec/spec_helper.rb