get thnads tests to work

This commit is contained in:
Torsten Ruger
2014-04-24 15:53:48 +03:00
parent d90ea3dd26
commit 601dc22b2e
11 changed files with 49 additions and 49 deletions

22
test/graph_helper.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'gritty'
def dump(obj, name)
g = digraph do
graph_attribs << 'bgcolor=black'
node_attribs << 'color=white'
node_attribs << 'penwidth=2'
node_attribs << 'fontcolor=white'
node_attribs << 'labelloc=c'
node_attribs << 'fontname="Courier New"'
node_attribs << 'fontsize=36'
edge_attribs << 'color=white'
edge_attribs << 'penwidth=2'
builder = Gritty::NodeBuilder.new self
builder.build obj, 'root'
save name, 'pdf'
end
end