tests/test_dogviz_functionally.rb in dogviz-0.0.21 vs tests/test_dogviz_functionally.rb in dogviz-0.0.22
- old
+ new
@@ -16,13 +16,14 @@
File.delete outfile('svg') if File.exist?(outfile('svg'))
end
include Dogviz
class Family < Dogviz::System
- attr_reader *%i(cat dog mum son)
+ attr_reader(*%i(cat dog mum son))
def initialize
super 'family'
+ suppress_messages!
house = container 'household'
@cat = house.thing 'cat'
@dog = house.thing 'dog'
@@ -58,19 +59,19 @@
sys.output dot: outfile('dot')
dotspec = File.read outfile('dot')
- assert_match /rank=sink/, dotspec
+ assert_match(/rank=sink/, dotspec)
end
def test_can_render_auto_nominate_graph
sys = system_with_auto_nominate
sys.thing 'a'
sys.output svg: outfile('svg')
end
def system_with_auto_nominate
- Dogviz::System.new 'test', auto_nominate: true
+ Dogviz::System.new('test', auto_nominate: true).suppress_messages!
end
end
end
\ No newline at end of file