Sha256: 207963404acc127a51e94961bb64cb797d9e6de09eb5252b95b061bf03b65b8f
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
require 'spec_helper' require 'wukong' require 'hanuman/graphvizzer' require 'hanuman/graphviz' describe 'Graphviz View' do describe 'Cherry Pie Example', :if => GRAPHVIZ, :examples_spec => true, :helpers => true do it 'makes a png' do require Pathname.path_to(:examples, 'workflow/cherry_pie.rb') gv = Warrant.to_graphviz basename = Pathname.path_to(:tmp, 'cherry_pie') gv.save(basename, 'png') # puts File.read("#{basename}.dot") end end describe 'Telegram Dataflow Example', :if => GRAPHVIZ, :examples_spec => true, :helpers => true do it 'makes a png' do require Pathname.path_to(:examples, 'dataflow/telegram.rb') gv = ExampleUniverse.to_graphviz basename = Pathname.path_to(:tmp, 'telegram') gv.save(basename, 'png') # puts File.read("#{basename}.dot") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wukong-3.0.0.pre | spec/hanuman/graphviz_spec.rb |