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 minitest deprecation warning (assert_nil) #475

Merged

Conversation

etagwerker
Copy link
Contributor

Hi there,

It seems that Minitest 6 will no longer support this idiom: assert_equal nil, obj:

DEPRECATED: Use assert_nil if expecting nil from /Users/etagwerker/Projects/fastruby/coverband/test/coverband/collectors/route_tracker_test.rb:23. This will fail in Minitest 6.

So this PR fixes that problem and makes it easier to upgrade to Minitest 6.

Thank you!

It seems that Minitest 6 will no longer support this idiom: `assert_equal nil, obj`:

> DEPRECATED: Use assert_nil if expecting nil from /Users/etagwerker/Projects/fastruby/coverband/test/coverband/collectors/route_tracker_test.rb:23. This will fail in Minitest 6.

So this fixes that problem and makes it easier to upgrade to Minitest 6.
Copy link
Owner

@danmayer danmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks so much

@danmayer danmayer merged commit 9a672e1 into danmayer:main Apr 3, 2023
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.

2 participants