summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: ce03fba354e544a884fe1fe05c965e26ca22f63a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), ".."))

if ENV['COVERALLS']
  require 'coveralls'
  Coveralls.wear!
else
  require 'simplecov'
  SimpleCov.start
end

require 'vcr'
require 'webmock'
require_relative '../lib/gitlab_excon'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.hook_into :excon
  c.configure_rspec_metadata!
end