From 6e19ea13e93ccd085c2be72a9694d3ebbb0cdc77 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 29 May 2024 22:01:49 -0400 Subject: [PATCH] test: shush minitest deprecation warnings --- test/test_download.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_download.rb b/test/test_download.rb index 2bca430..69113c8 100644 --- a/test/test_download.rb +++ b/test/test_download.rb @@ -25,7 +25,7 @@ def server_must_receive_connection(connections = 3, &block) server.close end - request_count.must_be :>, 0 + assert_operator(request_count, :>, 0) end before do @@ -63,12 +63,12 @@ def server_must_receive_connection(connections = 3, &block) @recipe.files << "file://#{path}" @recipe.download assert File.exist?(dest) - Digest::MD5.file(dest).hexdigest.must_equal "ee0e9f44e72213015ef976d5ac23931d" + assert_equal("ee0e9f44e72213015ef976d5ac23931d", Digest::MD5.file(dest).hexdigest) end it "other" do @recipe.files << "foo://foo" - proc { @recipe.download }.must_raise ArgumentError + assert_raises(ArgumentError) { @recipe.download } end end end