-
Notifications
You must be signed in to change notification settings - Fork 40
Add latest Rubies and Rails to CI matrix #98
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
base: master
Are you sure you want to change the base?
Add latest Rubies and Rails to CI matrix #98
Conversation
Also update actions/checkout
|
Hi @apotonick—could you review this PR when you can? Thanks! |
test/test_helper.rb
Outdated
| # Ruby 3.4 changed from {:key => value} to {key: value} in inspect output | ||
| def normalize_inspect(inspect_string) | ||
| inspect_string | ||
| .gsub(/" => /, '"=>') # Remove spaces around => for string keys: "key" => value → "key"=>value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, we have this https://github.com/trailblazer/trailblazer-core-utils/blob/master/lib/trailblazer/core/utils/inspect.rb#L14 which we could use here, but I will test your version! 💚
Would you mind making the tests assert_equal asserted, expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, I changed only the parts related to this diff to use the assert_equal expected, actual format. Let me know if you want me to update all the other tests as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apotonick Any thoughts on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @willnet, thanks! I tested your gsub magic! 🎉 I will release trailblazer-core-utils soon and we can start using our inspect helper here. Are you happy to change the tests accordingly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apotonick Done! 😃
Add the latest Rails and Ruby to the CI matrix. CI then failed, so I made the following changes to get the tests passing:
CI result is here.