begin
  require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
  require "rubygems"; require "bundler"; Bundler.setup
end

# Bundled gems
require 'fakeweb'
require 'fakefs/safe'

# Engineyard gem
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'engineyard'

# Spec stuff
require 'spec/autorun'
require 'support/helpers'

Spec::Runner.configure do |config|
  config.before(:all) do
    FakeWeb.allow_net_connect = false
    FakeFS.activate!
    ENV["CLOUD_URL"] = nil
    ENV["NO_SSH"] = "true"
  end

  config.before(:each) do
    FakeFS::FileSystem.clear
  end
end

begin
  require File.expand_path('../../.bundle/environment', __FILE__)
rescue LoadError
  require "rubygems"; require "bundler"; Bundler.setup
end

# Bundled gems
require 'fakeweb'
require 'fakefs/safe'

# Engineyard gem
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'engineyard'

# Spec stuff
require 'spec/autorun'
require 'support/helpers'

Spec::Runner.configure do |config|
  config.before(:all) do
    FakeWeb.allow_net_connect = false
    FakeFS.activate!
    ENV["CLOUD_URL"] = nil
    ENV["NO_SSH"] = "true"
  end

  config.before(:each) do
    FakeFS::FileSystem.clear
  end
end

Fix path in spec helper
Fix path in spec helper

Change-Id: Ic25b3afc55ae9a13d4547c0bcd30cca145376867
Reviewed-on: http://review.engineyard.com/181
Reviewed-by: Andre Arko <84de7f247766c9f87e4737d92fee235e10beaf0d@engineyard.com>
Tested-by: Andre Arko <84de7f247766c9f87e4737d92fee235e10beaf0d@engineyard.com>
