summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: 612af767e70e03cca22a3af35473c87f917b2d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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'

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