-
Notifications
You must be signed in to change notification settings - Fork 216
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
extend permitted rack-test version #268
Conversation
Thanks for looking into this. The tests are necessary but not sufficient 😆 Before we upgrade, we need to be confident that there are no breaking changes that will affect the pact framework that might not be covered in the tests. The ruby codebase is used by Pact in many other languages via the pact-ruby-standalone package, so there's a big impact if there are unexpected changes. I'll have a look at the changelog and see if anything stands out to me. |
I've just updated ruby 2.2 to ruby 2.4 in the test matrix. I know both versions are unsupported, however, we still need ruby 2.4 for the pact-ruby-standalone package that we make with Travelling Ruby. Can you merge in the change and see if that makes the first test in the test matrix pass? |
What triggers running the tests against the test matrix? Looks as though it might be related to pushing to github? maybe? Any tips on testing PR's would be nice to see in the "contributing" page. It just says "run the tests". Or is is common practice just to make it the default rake task? |
|
A git push. See the github workflow config file here https://github.com/pact-foundation/pact-ruby/blob/master/.github/workflows/test.yml#L3 |
I've updated the testing matrix again, because there were issues with ruby 2.4. Can you merge from master please? |
Each of these items needs to be checked against the code in both pact-ruby, pact-support, and the pact-mock_service gem. https://github.com/rack/rack-test/blob/main/History.md#200--2022-06-24 |
Beth, I had no idea. I thought I was just proposing a simple change, that didn't degrade the test suite. But it became much bigger than my skill set or my ability to follow up! I can't do this justice, thanks for being responsive and thanks for the work you and the team do. |
No worries. You're absolutely right that it should be updated. We just have to make sure it's done carefully. I'll put it on my list of things to do. |
I don't think there's much to worry about here. I don't think any of these modules depend on the deprecated methods.
|
New version of pact gem released with this change. |
Thanks for looking into it @stanhu. I've opened the rack-test version for the ruby gem, but locked it for the pact-ruby-standalone and pact-cli for now, until the Ruby gem users give it a good shake out. |
@bethesque Thanks! For some reason, I'm not seeing the new gem? https://rubygems.org/gems/pact |
Sorry, the release failed. Try now. |
rack-test 2.0.2 is now released. I ran all specs using
rspec spec
and everything passed. Should be sufficient, no?