spec/spec_helper.rb in pupa-0.0.11 vs spec/spec_helper.rb in pupa-0.0.12

- old
+ new

@@ -16,5 +16,17 @@ 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