From fde8e61155d6944b92db9d91c84374d02d8ba43f Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 28 Dec 2014 19:27:02 +0800 Subject: ghostscript: add test Closes #35302. Signed-off-by: Mike McQuaid --- Library/Formula/ghostscript.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library/Formula/ghostscript.rb') 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__ -- cgit v1.2.3