Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Graphviz: add test

  • Loading branch information...
commit c45f08304306559f8b2b1f04f22fa35ad62852f1 1 parent 03a4e29
@adamv adamv authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 Library/Formula/graphviz.rb
View
13 Library/Formula/graphviz.rb
@@ -34,4 +34,17 @@ def install
"--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
Please sign in to comment.
Something went wrong with that request. Please try again.