Skip to content

docs: document pact 2.0.0 known issues and workarounds#401

Merged
Saup21 merged 1 commit into
masterfrom
docs/pact-2-known-issues-workarounds
May 12, 2026
Merged

docs: document pact 2.0.0 known issues and workarounds#401
Saup21 merged 1 commit into
masterfrom
docs/pact-2-known-issues-workarounds

Conversation

@Saup21
Copy link
Copy Markdown
Contributor

@Saup21 Saup21 commented May 12, 2026

Summary

Documents three bugs found in pact 2.0.0 that require host-app workarounds until upstream fixes land:

  1. Missing activesupport dependency — pact uses present?/blank? internally without declaring it as a dependency, causing NoMethodError when ActiveSupport is not loaded
  2. rack-proxy 0.7.7 + rackup 2 / rack 3 incompatibilityrack-proxy calls body_stream.rewind on Rackup::Handler::WEBrick::Input which lacks the method, raising NoMethodError during provider verification setup
  3. WebmockHelpers.turned_off missing return — falls through to WebMock::Config when WebMock is not defined, raising NameError

Adds a "Known Issues and Workarounds" section with individual fixes and a combined pact_helper.rb snippet that applies all three workarounds.

Test plan

  • Review the new "Known Issues and Workarounds" section in README.md
  • Verify the combined pact_helper.rb snippet matches the workarounds documented per-issue

🤖 Generated with Claude Code

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>
@Saup21 Saup21 requested a review from YOU54F May 12, 2026 10:11
@Saup21 Saup21 merged commit aa7e274 into master May 12, 2026
35 of 36 checks passed
@Saup21 Saup21 deleted the docs/pact-2-known-issues-workarounds branch May 12, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants