ghostscript: add test
Closes Homebrew/homebrew#35302. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
2d04e9ffcb
commit
5ac6e13209
1 changed files with 12 additions and 0 deletions
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue