Sha256: d7821668668497b868c4aa7398e0a1512c8547c6def10c22b6f1d7075649e7dd

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

ENV['TEST'] = '1'

if RUBY_VERSION != "1.8.7"
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
end

require "pp"
 
root = File.expand_path('../../', __FILE__)
require "#{root}/lib/elb"

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

  def instance_id
    ENV['INSTANCE_ID']
  end

  def ensure_tmp
    FileUtils.mkdir('tmp') unless File.exist?('tmp')
  end
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elb-0.0.7 spec/spec_helper.rb
elb-0.0.6 spec/spec_helper.rb
elb-0.0.5 spec/spec_helper.rb
elb-0.0.4 spec/spec_helper.rb