ghostscript: add test

Closes Homebrew/homebrew#35302.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2014-12-28 19:27:02 +08:00 committed by Mike McQuaid
parent 2d04e9ffcb
commit 5ac6e13209

View file

@ -111,6 +111,18 @@ class Ghostscript < Formula
(man+"de").rmtree
end
test do
(testpath/"test.ps").write <<-EOS.undent
/Courier
20 selectfont
72 500 moveto
(Hello World!) show
showpage
EOS
assert_match /Hello World!/, shell_output("#{bin}/ps2ascii test.ps")
end
end
__END__