From ab8976e7ebdb49095b1854a6247dd5a9063fe5c6 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 7 Mar 2015 13:36:50 +0800 Subject: ghostscript: use test_fixtures for ps file --- Library/Formula/ghostscript.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Library/Formula/ghostscript.rb') 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 -- cgit v1.2.3