Skip to content

Commit

Permalink
test: shush minitest deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 30, 2024
1 parent 8f56cfd commit 6e19ea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_download.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 6e19ea1

Please sign in to comment.