You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
When the URI of an example doesn't match the contract request URI, we get a slightly unhelpful error message "TypeError: no implicit conversion of nil into Hash" . For example, parts of the contract look a little like this:
Seems as if Pacto::Actors::FromExamples is complaining as this causes example_uri_values to return nil.
Pull request that changes the error to be a bit more meaningful to follow ... though could understand if you preferred recovery of this scenario as an alternative!
( Aside: I am not sure I fully understand how one might go about changing the examples to have non-absolute URIs which in our case would fix the issue... perhaps I am missing something :) )
The text was updated successfully, but these errors were encountered:
Hi there,
When the URI of an example doesn't match the contract request URI, we get a slightly unhelpful error message "TypeError: no implicit conversion of nil into Hash" . For example, parts of the contract look a little like this:
Seems as if Pacto::Actors::FromExamples is complaining as this causes example_uri_values to return nil.
Pull request that changes the error to be a bit more meaningful to follow ... though could understand if you preferred recovery of this scenario as an alternative!
( Aside: I am not sure I fully understand how one might go about changing the examples to have non-absolute URIs which in our case would fix the issue... perhaps I am missing something :) )
The text was updated successfully, but these errors were encountered: