Sha256: 913d8c0409fe8bf942ec06309336890448ecf113d7ad6354ce84cc2dd6d36954

Contents?: true

Size: 561 Bytes

Versions: 3

Compression:

Stored size: 561 Bytes

Contents

if ENV['TRAVIS_BUILD'].nil?
  require 'simplecov'
  SimpleCov.start
end

require 'rubygems'
require 'bundler/setup'
require 'vcr'
require 'cgi'
require 'ideal-mollie'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.hook_into :fakeweb
  c.register_request_matcher :ignore_query_param_ordering do |r1, r2|
    uri1 = URI(r1.uri)
    uri2 = URI(r2.uri)

    uri1.scheme == uri2.scheme &&
      uri1.host == uri2.host &&
        uri1.path == uri2.path &&
          CGI.parse(uri1.query) == CGI.parse(uri2.query)
  end
end

RSpec.configure

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ideal-mollie-1.0.2 spec/spec_helper.rb
ideal-mollie-1.0.1 spec/spec_helper.rb
ideal-mollie-1.0.0 spec/spec_helper.rb