test/stylesheet/tc_table_styles.rb in axlsx-1.0.18 vs test/stylesheet/tc_table_styles.rb in axlsx-1.1.0
- old
+ new
@@ -1,7 +1,6 @@
-require 'test/unit'
-require 'axlsx.rb'
+require 'tc_helper.rb'
class TestTableStyles < Test::Unit::TestCase
def setup
@item = Axlsx::TableStyles.new
@@ -13,16 +12,16 @@
def test_initialiation
assert_equal(@item.defaultTableStyle, "TableStyleMedium9")
assert_equal(@item.defaultPivotStyle, "PivotStyleLight16")
end
- def test_defaultTableStyle
+ 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
+ def test_defaultPivotStyle
assert_raise(ArgumentError) { @item.defaultPivotStyle = -1.1 }
assert_nothing_raised { @item.defaultPivotStyle = "anyones guess" }
assert_equal(@item.defaultPivotStyle, "anyones guess")
end