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

Use single quotes for pact term creation error message to avoid \" in message #46

Closed
bethesque opened this issue Oct 11, 2017 · 5 comments · Fixed by #106
Closed

Use single quotes for pact term creation error message to avoid \" in message #46

bethesque opened this issue Oct 11, 2017 · 5 comments · Fixed by #106

Comments

@bethesque
Copy link
Member

Value to generate \"/api/check-bsb/999-999\" does not match regular expression /\\/api\\/check-bsb\\/d{3}-d{3}/"

The " doesn't look good.

@bheemreddy181-zz
Copy link

bheemreddy181-zz commented Jul 28, 2021

Seeing a similar issue by any chance do you know what we are doing wrong

/home/circleci/project/vendor/bundle/ruby/2.5.0/gems/pact-support-1.16.8/lib/pact/term.rb:31:in `initialize': Value to generate "{"case_types"=>["Bankruptcy", "Credit counseling", "Legal complaint", "ID theft", "Contingent Placement", "Deceased", "Cease & Desist", "Credit Reporting", "Debt Sale"], "loan_number"=>"2021IL316410875"}" does not match regular expression /\S.*loan_number=\d{4}[A-Z]{2}\d*/ (Pact::Error)

@bethesque
Copy link
Member Author

The thing it's being asked to generate is a hash. You can't match a hash against a regular expression.

@bheemreddy181-zz
Copy link

bheemreddy181-zz commented Jul 28, 2021

Well this was working in the older version of pact support gem - surprisingly
Screen Shot 2021-07-27 at 4 56 30 PM

@bethesque
Copy link
Member Author

There's no change that I can think of immediately that would have affected that. Please create a reproducible example using https://github.com/pact-foundation/pact-ruby-e2e-example

@bethesque
Copy link
Member Author

Btw, 1.32.0 is VERY old! It's from 2018-07-25.

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 a pull request may close this issue.

2 participants