Skip to content
bethesque edited this page Dec 16, 2014 · 10 revisions

Gotchas

  • Be aware when using the app from the config.ru file is used (the default option) that the Rack::Builder.parse_file seems to require files even if they have already been required, so make sure your boot files are idempotent.

Matching problems

  • If the match results don't make sense, check that your Content-Type header is set - the matcher used depends on the Content-Type. If the Content-Type doesn't match "application/.*json", then it will be using a text matcher, which will do an exact text match.

  • Try using a different diff formatter. Different people find the different formats easier to interpret.

Provider

Show full backtrace for pact:verify

Add the following to your pact_helper.rb

RSpec.configure do |config|
  config.full_backtrace = true
end

Clone this wiki locally