tests/test_dogviz_functionally.rb in dogviz-0.0.18 vs tests/test_dogviz_functionally.rb in dogviz-0.0.19
- old
+ new
@@ -50,7 +50,18 @@
assert_equal ['household'], graph.names_of.containers
assert_equal ['cat', 'dog', 'son', 'mum'], graph.names_of.things
assert_equal ['chases', 'follows', 'parents', 'ignores'], graph.names_of.edges
end
+ def test_allows_rank_specification
+ sys = Family.new
+ sys.logical_container 'sinker', rank: 'sink'
+
+ sys.output dot: outfile('dot')
+
+ dotspec = File.read outfile('dot')
+
+ assert_match /rank=sink/, dotspec
+ end
+
end
end
\ No newline at end of file