Sha256: 7168f4d6421c1cbeac6de195b36e47d43cf12d4662eb2cfa988993962c1c8eee
Contents?: true
Size: 776 Bytes
Versions: 38
Compression:
Stored size: 776 Bytes
Contents
require 'tc_helper.rb' class TestTableStyles < Test::Unit::TestCase def setup @item = Axlsx::TableStyles.new end def teardown end def test_initialiation assert_equal(@item.defaultTableStyle, "TableStyleMedium9") assert_equal(@item.defaultPivotStyle, "PivotStyleLight16") end def test_defaultTableStyle assert_raise(ArgumentError) { @item.defaultTableStyle = -1.1 } assert_nothing_raised { @item.defaultTableStyle = "anyones guess" } assert_equal(@item.defaultTableStyle, "anyones guess") end def test_defaultPivotStyle assert_raise(ArgumentError) { @item.defaultPivotStyle = -1.1 } assert_nothing_raised { @item.defaultPivotStyle = "anyones guess" } assert_equal(@item.defaultPivotStyle, "anyones guess") end end
Version data entries
38 entries across 38 versions & 6 rubygems