Sha256: f57c1996ce57b53d22178bdfa2f258034ab90b516d9ed604f14f686f668ed4c9
Contents?: true
Size: 735 Bytes
Versions: 4
Compression:
Stored size: 735 Bytes
Contents
require_relative 'setup_tests' require_relative 'svg_graph' module Tests class TestContainer < Test::Unit::TestCase include Dogviz class StubParent attr_accessor :render_options def register(name, thing) end def colorize_edges? false end def rollup? false end def skip? false end end def setup @parent = StubParent.new end attr_reader :parent def test_container_exposes_inherited_render_options_from_parent inheritable_options = {fontname: 'glyphoz'} parent.render_options = inheritable_options assert_equal 'glyphoz', Container.new(parent, 'container').render_options[:fontname] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dogviz-0.0.22 | tests/test_container.rb |
dogviz-0.0.21 | tests/test_container.rb |
dogviz-0.0.20 | tests/test_container.rb |
dogviz-0.0.19 | tests/test_container.rb |