Graphviz: add test

This commit is contained in:
Adam Vandenberg 2011-09-01 12:04:27 -07:00
parent 8e7616d449
commit 3e3a193487

View file

@ -34,4 +34,17 @@ class Graphviz < Formula
"--disable-swig"
system "make install"
end
def test
mktemp do
p = Pathname.new Dir.pwd
(p+'sample.dot').write <<-EOS.undent
digraph G {
a -> b
}
EOS
system "#{bin}/dot -Tpdf -o sample.pdf sample.dot && /usr/bin/open ./sample.pdf && /bin/sleep 3"
end
end
end