aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ghostscript.rb
diff options
context:
space:
mode:
authorXu Cheng2015-03-07 13:36:50 +0800
committerXu Cheng2015-03-07 13:36:50 +0800
commitab8976e7ebdb49095b1854a6247dd5a9063fe5c6 (patch)
tree20c94f164162ef6445ff47ce18a16c4ad87ef783 /Library/Formula/ghostscript.rb
parent9c9f2a532feb1ab58339c5507581ef13b0ffc1eb (diff)
downloadhomebrew-ab8976e7ebdb49095b1854a6247dd5a9063fe5c6.tar.bz2
ghostscript: use test_fixtures for ps file
Diffstat (limited to 'Library/Formula/ghostscript.rb')
-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