Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: require ostruct for OpenStruct name errors #23

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented May 16, 2024

Same error as seen in pact_broker-client pact-foundation/pact_broker-client#155

  1) creating a message pact with a string message allows a consumer to test that it can handle the expected message
     Failure/Error: message = OpenStruct.new(JSON.parse(content_string))

     NameError:
       uninitialized constant StringMessageHandler::OpenStruct
     # ./spec/features/create_message_pact_spec.rb:37:in `call'
     # ./spec/features/create_message_pact_spec.rb:89:in `block (4 levels) in <top (required)>'
     # ./lib/pact/message/consumer/consumer_contract_builder.rb:37:in `send_message_string'
     # ./spec/features/create_message_pact_spec.rb:88:in `block (3 levels) in <top (required)>'

@YOU54F YOU54F merged commit 8c74b13 into master May 16, 2024
31 checks passed
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.

1 participant