]> git.openstreetmap.org Git - rails.git/commitdiff
Work around upcoming minitest insanity
authorTom Hughes <tom@compton.nu>
Fri, 2 Dec 2016 22:29:44 +0000 (22:29 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 2 Dec 2016 22:29:44 +0000 (22:29 +0000)
Minitest 6 will not allow assert_equal to compare for equality
with nil and minitest 5 has already started warning about it.

That's fine if you're comparing with a nil constant, but if you're
comparing with an expression that is sometimes nil and sometimes
not nil it's an absolute pain in the rear end.


No differences found