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