tests/test_thing.rb in dogviz-0.0.18 vs tests/test_thing.rb in dogviz-0.0.19
- old
+ new
@@ -4,13 +4,13 @@
module Tests
class TestThing < Test::Unit::TestCase
include Dogviz
class StubRenderer
- attr_reader :last_node_options, :last_edge_options
- def render_node(parent, id, render_options, attributes)
- @last_node_options = render_options.merge attributes
+ attr_reader :last_node_attributes, :last_edge_options
+ def render_node(parent, id, attributes)
+ @last_node_attributes = attributes
end
def render_edge(from, other, options)
@last_edge_options = options
end
end
@@ -43,10 +43,10 @@
thing = Thing.new parent, 'thing'
thing.render renderer
- assert_equal 'funky-font', renderer.last_node_options[:fontname]
+ assert_equal 'funky-font', renderer.last_node_attributes[:fontname]
end
def test_thing_edges_rendered_with_inherited_fontname
parent.render_options = {fontname: 'crazy-font'}
\ No newline at end of file