docs: document pact 2.0.0 known issues and workarounds#401
Merged
Conversation
Three bugs in pact 2.0.0 require host-app workarounds until upstream fixes land: 1. Missing activesupport dependency (present?/blank? used internally) 2. rack-proxy 0.7.7 calls body_stream.rewind on Rackup::Handler::WEBrick::Input which lacks the method under rackup 2 / rack 3 3. WebmockHelpers.turned_off missing return before early yield, falls through to WebMock::Config when WebMock is not defined Adds a "Known Issues and Workarounds" section with individual fixes and a combined pact_helper.rb snippet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
YOU54F
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents three bugs found in pact 2.0.0 that require host-app workarounds until upstream fixes land:
activesupportdependency — pact usespresent?/blank?internally without declaring it as a dependency, causingNoMethodErrorwhen ActiveSupport is not loadedrack-proxy0.7.7 + rackup 2 / rack 3 incompatibility —rack-proxycallsbody_stream.rewindonRackup::Handler::WEBrick::Inputwhich lacks the method, raisingNoMethodErrorduring provider verification setupWebmockHelpers.turned_offmissingreturn— falls through toWebMock::Configwhen WebMock is not defined, raisingNameErrorAdds a "Known Issues and Workarounds" section with individual fixes and a combined
pact_helper.rbsnippet that applies all three workarounds.Test plan
pact_helper.rbsnippet matches the workarounds documented per-issue🤖 Generated with Claude Code