Sha256: e1f02e05539cd9255a751714f295a7c6cf7b963719d8acd2418b0c5d6fab0290

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

engineyard_loaded_path = $:.select { |path| path =~ %r|gems/engineyard-\d+| }.first
EY_ROOT = engineyard_loaded_path.gsub(%r|/\w+$|,'')

# helper to be stubbed out from engineyard spec_helper.rb
def shared_examples_for(title)
end

support = Dir[File.join(EY_ROOT,'/spec/support/*.rb')]
support.each{|helper| require helper }
World(SpecHelpers)

require "fakeweb"

Before do
  ENV["NO_SSH"] = "true"
  ENV['CLOUD_URL'] = EY.fake_awsm
  FakeWeb.allow_net_connect = true
end

After do
  ENV.delete('CLOUD_URL')
  ENV.delete('EYRC')
  ENV.delete('NO_SSH')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-dns-1.1.0 features/support/engineyard.rb