Sha256: 00d7da8a1bb0b6bb16b48ddc75b4a33f16448684ca5116b923696f399e3ad989
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter '/spec' end if ENV["COVERAGE"] require 'hashie' require 'rubygems' require 'bundler/setup' require 'heirloom' module SpecHelpers def set_env_var(name,value) ENV.stub(:fetch).with(name, nil).and_return(value) end def double_log double 'log', :debug => true, :info => true, :warn => true, :error => true, :level= => true end def double_config(args = {}) args[:logger] ||= double_log args[:access_key] ||= 'key' args[:secret_key] ||= 'secret' args[:metadata_region] ||= 'us-west-1' args[:use_iam_profile] ||= false args[:proxy] ||= nil Hashie::Mash.new args end end RSpec.configure do |config| config.include SpecHelpers end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.12.7 | spec/spec_helper.rb |
heirloom-0.12.5 | spec/spec_helper.rb |
heirloom-0.12.4 | spec/spec_helper.rb |
heirloom-0.12.3 | spec/spec_helper.rb |
heirloom-0.12.2 | spec/spec_helper.rb |