Skip to content

Commit

Permalink
Address deprecation warning from minitest
Browse files Browse the repository at this point in the history
Using assert_equal nil will be deprecated in minitest 6. We should
address this deprecation so upgrading will be easier when the time
comes, as well as to keep our test outputs nice and clear.

Deprecation warning:
DEPRECATED: Use assert_nil if expecting nil. This will fail in Minitest 6.
  • Loading branch information
beccapearce committed Apr 24, 2024
1 parent 5d6f042 commit e2553f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/presenters/document_collection_presenter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class PresentedDocumentCollection < TestCase

public_updated_at = grouped[0][:metadata][:public_updated_at]

assert_equal nil, public_updated_at
assert_nil nil, public_updated_at
end
end
end
Expand Down

0 comments on commit e2553f4

Please sign in to comment.