From e2553f4aa1de178f676d5a58be20fbb4bf6d8533 Mon Sep 17 00:00:00 2001 From: Rebecca Pearce <17481621+beccapearce@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:58:10 +0100 Subject: [PATCH] Address deprecation warning from minitest 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. --- test/presenters/document_collection_presenter_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/presenters/document_collection_presenter_test.rb b/test/presenters/document_collection_presenter_test.rb index 7251ef175..d166b929f 100644 --- a/test/presenters/document_collection_presenter_test.rb +++ b/test/presenters/document_collection_presenter_test.rb @@ -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