danmayer / coverband

Ruby production code coverage collection and reporting (line of code usage)
https://github.com/danmayer/coverband
MIT License
2.46k stars 157 forks source link

Fix minitest deprecation warning (`assert_nil`) #475

Closed etagwerker closed 1 year ago

etagwerker commented 1 year ago

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!