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

Version Path
caxlsx-3.1.1 test/stylesheet/tc_table_styles.rb
caxlsx-3.1.0 test/stylesheet/tc_table_styles.rb
bonio-axlsx-2.2.3 test/stylesheet/tc_table_styles.rb
caxlsx-3.0.4 test/stylesheet/tc_table_styles.rb
caxlsx-3.0.3 test/stylesheet/tc_table_styles.rb
caxlsx-3.0.2 test/stylesheet/tc_table_styles.rb
caxlsx-2.0.2 test/stylesheet/tc_table_styles.rb
caxlsx-3.0.1 test/stylesheet/tc_table_styles.rb
caxlsx-3.0.0 test/stylesheet/tc_table_styles.rb
axlsx-alt-3.0.1 test/stylesheet/tc_table_styles.rb
axlsx-alt-3.0.0 test/stylesheet/tc_table_styles.rb
axlsx-3.0.0.pre test/stylesheet/tc_table_styles.rb
bonio-axlsx-2.2.2 test/stylesheet/tc_table_styles.rb
bonio-axlsx-2.2.1 test/stylesheet/tc_table_styles.rb
dg-axlsx-2.1.0 test/stylesheet/tc_table_styles.rb
axlsx-2.1.0.pre test/stylesheet/tc_table_styles.rb
l_axlsx-2.0.1 test/stylesheet/tc_table_styles.rb
axlsx-2.0.1 test/stylesheet/tc_table_styles.rb
axlsx-2.0.0 test/stylesheet/tc_table_styles.rb
axlsx-1.3.6 test/stylesheet/tc_table_styles.rb