Skip to content

Commit

Permalink
dua-cli 2.20.0
Browse files Browse the repository at this point in the history
dua-cli: update test

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed May 5, 2023
1 parent 20fc3ca commit b1af36d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Formula/dua-cli.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class DuaCli < Formula
desc "View disk space usage and delete unwanted data, fast"
homepage "https://lib.rs/crates/dua-cli"
url "https://github.com/Byron/dua-cli/archive/refs/tags/v2.19.2.tar.gz"
sha256 "5d508ea6374702f04f4b21f6dfb3d287922d3b7d5860dfc3fce2366128f371a0"
url "https://github.com/Byron/dua-cli/archive/refs/tags/v2.20.0.tar.gz"
sha256 "f57c9466ede7423641056a34a35dbeea5e3fcb909a96bdad970b5d0f54c4c09a"
license "MIT"

bottle do
Expand All @@ -26,12 +26,6 @@ def install
(testpath/"empty.txt").write("")
(testpath/"file.txt").write("01")

expected = <<~EOS
\e[32m 0 B\e[39m #{testpath}/empty.txt
\e[32m 2 B\e[39m #{testpath}/file.txt
\e[32m 2 B\e[39m total
EOS

assert_equal expected, shell_output("#{bin}/dua -A #{testpath}/*.txt")
assert_match "2 B\e[39m total", shell_output("#{bin}/dua -A #{testpath}/*.txt")
end
end

0 comments on commit b1af36d

Please sign in to comment.