Sha256: 41880b1f8678b87882a2b7c5c223bd19c86c21be238ab2871b88ddd33f78de3f
Contents?: true
Size: 818 Bytes
Versions: 6
Compression:
Stored size: 818 Bytes
Contents
require 'tc_helper.rb' class TestTableStyle < Test::Unit::TestCase def setup @item = Axlsx::TableStyle.new "fisher" end def teardown end def test_initialiation assert_equal(@item.name, "fisher") assert_equal(@item.pivot, nil) assert_equal(@item.table, nil) end def test_name assert_raise(ArgumentError) { @item.name = -1.1 } assert_nothing_raised { @item.name = "lovely table style" } assert_equal(@item.name, "lovely table style") end def test_pivot assert_raise(ArgumentError) { @item.pivot = -1.1 } assert_nothing_raised { @item.pivot = true } assert_equal(@item.pivot, true) end def test_table assert_raise(ArgumentError) { @item.table = -1.1 } assert_nothing_raised { @item.table = true } assert_equal(@item.table, true) end end
Version data entries
6 entries across 6 versions & 1 rubygems