diff options
| author | Xu Cheng | 2014-12-28 19:27:02 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-28 12:06:14 +0000 |
| commit | fde8e61155d6944b92db9d91c84374d02d8ba43f (patch) | |
| tree | d63ba8431297a5fe85e22663f3b6039578b277ae /Library/Formula/ghostscript.rb | |
| parent | 8cf9a3fb56a3a32116b2d28830d505506da905d8 (diff) | |
| download | homebrew-fde8e61155d6944b92db9d91c84374d02d8ba43f.tar.bz2 | |
ghostscript: add test
Closes #35302.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/ghostscript.rb')
| -rw-r--r-- | Library/Formula/ghostscript.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb index daab1b488..9729d5506 100644 --- a/Library/Formula/ghostscript.rb +++ b/Library/Formula/ghostscript.rb @@ -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__ |
