diff options
| author | Jack Nagel | 2013-02-01 23:12:29 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-01 23:38:49 -0600 |
| commit | 58a90da52c922dbacc6771e7b6b1c60ccaacd950 (patch) | |
| tree | d2a05fdadfa4003826bec48385e68dc7001bd1ed /Library/Formula | |
| parent | 09e3487c6d71d7eb60da0e0b9f9b24962f61937e (diff) | |
| download | homebrew-58a90da52c922dbacc6771e7b6b1c60ccaacd950.tar.bz2 | |
asymptote: use test DSL
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/asymptote.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/asymptote.rb b/Library/Formula/asymptote.rb index 0769003eb..8ed908fd9 100644 --- a/Library/Formula/asymptote.rb +++ b/Library/Formula/asymptote.rb @@ -27,10 +27,9 @@ class Asymptote < Formula system "make install" end - def test + test do ENV['TEXMFHOME'] = "#{HOMEBREW_PREFIX}/share/texmf" - mktemp do - (Pathname.pwd+'asy_test.tex').write <<-EOS.undent + (testpath/'asy_test.tex').write <<-EOS.undent \\nonstopmode \\documentclass{minimal} @@ -45,12 +44,11 @@ class Asymptote < Formula \\end{asy} \\end{document} - EOS + EOS - system "pdflatex asy_test" - system "asy asy_test-1.asy" - system "pdflatex asy_test" - end + system "pdflatex asy_test" + system "asy asy_test-1.asy" + system "pdflatex asy_test" return (not $? == 0) end |
