a2ps: add test

Closes Homebrew/homebrew#35388.
This commit is contained in:
Xu Cheng 2014-12-31 16:32:55 +08:00 committed by Mike McQuaid
parent 2a5a612cd7
commit 459937549e

View file

@ -23,4 +23,10 @@ class A2ps < Formula
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test.txt").write("Hello World!\n")
system "#{bin}/a2ps", "test.txt", "-o", "test.ps"
assert File.read("test.ps").start_with?("")
end
end