Graphviz: add test
This commit is contained in:
parent
8e7616d449
commit
3e3a193487
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue