diff options
| -rw-r--r-- | Library/Formula/gnuplot.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index 2b10beb8e..efc9a340b 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -108,7 +108,12 @@ class Gnuplot < Formula end test do - system "#{bin}/gnuplot", "--version" + system "#{bin}/gnuplot", "-e", <<-EOS.undent + set terminal png; + set output "#{testpath}/image.png"; + plot sin(x); + EOS + assert (testpath/"image.png").exist? end def caveats |
