Sha256: 63ff6cfc31ac4d42cd4beb7311bbc57b23e554770066356b1275dc3c80031c69
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
if self.class.const_defined?(:EY_ROOT) raise "don't require the spec helper twice!" end if ENV['COVERAGE'] require 'simplecov' SimpleCov.start end EY_ROOT = File.expand_path("../..", __FILE__) require 'rubygems' require 'bundler/setup' # Bundled gems require 'fakeweb' require 'fakeweb_matcher' require 'json' # Engineyard gem $LOAD_PATH.unshift(File.join(EY_ROOT, "lib")) require 'engineyard-cloud-client' require 'engineyard-cloud-client/test' # Spec stuff require 'rspec' require 'tmpdir' require 'yaml' require 'pp' support = Dir[File.join(EY_ROOT,'/spec/support/*.rb')] support.each{|helper| require helper } #support = Dir[File.join(EY_ROOT,'/spec/support/fake_awsm/*.rb')] #support.each{|helper| require helper } RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.include SpecHelpers config.before(:all) do FakeWeb.allow_net_connect = false end config.before(:each) do EY::CloudClient.default_endpoint! end end
Version data entries
6 entries across 6 versions & 1 rubygems