Sha256: 13945921c722a3a49d4879815b0b692391e1c42801613bbf05be33ff37557339

Contents?: true

Size: 680 Bytes

Versions: 3

Compression:

Stored size: 680 Bytes

Contents

require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

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.5 spec/spec_helper.rb
ideal-mollie-1.0.4 spec/spec_helper.rb
ideal-mollie-1.0.3 spec/spec_helper.rb