Sha256: c57aaea1d7fb044a1f1406a5a40d1bb816d3d11682cba12c331a7db54c7f43d0

Contents?: true

Size: 746 Bytes

Versions: 2

Compression:

Stored size: 746 Bytes

Contents

require 'rubygems'

require 'coveralls'
Coveralls.wear!

require 'multi_xml'
require 'nokogiri'
require 'redis-store'
require 'rspec'
require 'vcr'
require File.dirname(__FILE__) + '/../lib/pupa'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/cassettes'
  c.hook_into :faraday

  c.around_http_request do |request|
    VCR.use_cassette(Digest::SHA1.hexdigest(request.uri + request.body + request.headers.to_s), &request)
  end
end

def testing_python_compatibility?
  ENV['MODE'] == 'compat'
end

if testing_python_compatibility?
  require File.dirname(__FILE__) + '/../lib/pupa/refinements/opencivicdata'
end

RSpec.configure do |c|
  c.filter_run_excluding :testing_python_compatibility => true unless testing_python_compatibility?
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pupa-0.0.13 spec/spec_helper.rb
pupa-0.0.12 spec/spec_helper.rb