aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ghostscript.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ghostscript.rb')
-rw-r--r--Library/Formula/ghostscript.rb12
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__