Sha256: 2776e7c83bada36aef32809799f92c57a727e67578ee231c684195f06356fcef
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
# coding: utf-8 require 'test_helper' class Thinreports::Core::Shape::Style::TestBasic < Minitest::Test include Thinreports::TestHelper def create_basic_style(format_config = {}) format = Thinreports::Core::Shape::Basic::Format.new(format_config) Thinreports::Core::Shape::Style::Basic.new(format) end def test_visible_should_return_visibility_of_format_as_default style = create_basic_style('display' => 'false') assert_equal style.visible, false end def test_visible_should_properly_set_visibility style = create_basic_style('display' => 'false') style.visible = true assert_equal style.visible, true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.2 | test/unit/core/shape/styles/test_basic.rb |
thinreports-0.8.1 | test/unit/core/shape/styles/test_basic.rb |
thinreports-0.8.0 | test/unit/core/shape/styles/test_basic.rb |