paq8px: pass strict audit/style test.

Closes Homebrew/homebrew#36481.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Caleb Xu 2015-02-02 19:35:27 -05:00 committed by Mike McQuaid
parent cd5c863b1a
commit 7be31654c6

View file

@ -1,5 +1,3 @@
require "formula"
class Paq8px < Formula
homepage "http://dhost.info/paq8/"
url "http://dhost.info/paq8/paq8px_v69.zip"
@ -11,13 +9,13 @@ class Paq8px < Formula
end
test do
system "touch test.txt"
system "echo Foobarbaz > test.txt"
touch "test.txt"
system "echo", "Foobarbaz", ">", "test.txt"
system "yes | #{bin}/paq8px test.txt"
system "yes | #{bin}/paq8px test.txt.paq8px"
system "rm test.txt"
rm "test.txt"
system "yes | #{bin}/paq8px test.txt.paq8px"
system "rm test.txt"
system "rm test.txt.paq8px"
rm "test.txt"
rm "test.txt.paq8px"
end
end