$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

begin
  require 'pry'
rescue LoadError
end

begin
  require 'coveralls'
  Coveralls.wear!
rescue LoadError
end

require 'vcr'

# vcr helper
RECORD = {:record => :new_episodes}
# e.g.: with_vcr("_3hosts", RECORD)
def with_vcr(extension = "", options = {})
  VCR.use_cassette("#{described_class.name}#{extension}", options) do
    yield
  end
end

VCR.configure do |c|
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.hook_into :webmock

  c.allow_http_connections_when_no_cassette = false
  c.default_cassette_options = {
    :allow_unused_http_interactions => false
  }
  c.configure_rspec_metadata!
  # c.debug_logger = STDOUT
end

require 'manageiq_foreman'

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

begin
  require 'pry'
rescue LoadError
end

if ENV["TRAVIS"]
  require 'coveralls'
  Coveralls.wear!
end

require 'vcr'

# vcr helper
RECORD = {:record => :new_episodes}
# e.g.: with_vcr("_3hosts", RECORD)
def with_vcr(extension = "", options = {})
  VCR.use_cassette("#{described_class.name}#{extension}", options) do
    yield
  end
end

VCR.configure do |c|
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.hook_into :webmock

  c.allow_http_connections_when_no_cassette = false
  c.default_cassette_options = {
    :allow_unused_http_interactions => false
  }
  c.configure_rspec_metadata!
  # c.debug_logger = STDOUT
end

require 'manageiq_foreman'

Add coveralls as a development dependency, only load it for Travis
Add coveralls as a development dependency, only load it for Travis
