aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ghostscript.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb
index 21c3c4a23..566e8cd9a 100644
--- a/Library/Formula/ghostscript.rb
+++ b/Library/Formula/ghostscript.rb
@@ -113,15 +113,8 @@ class Ghostscript < Formula
end
test do
- (testpath/"test.ps").write <<-EOS.undent
- %!PS
- /Courier
- 20 selectfont
- 72 500 moveto
- (Hello World!) show
- showpage
- EOS
- assert_match /Hello World!/, shell_output("#{bin}/ps2ascii test.ps")
+ ps = test_fixtures("test.ps")
+ assert_match /Hello World!/, shell_output("#{bin}/ps2ascii #{ps}")
end
end