summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet/tc_table_styles.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-23 23:52:34 +0900
committerRandy Morgan <[email protected]>2012-03-23 23:52:34 +0900
commitad7119b5927584e4fc735ce72ea69322c3e9acac (patch)
treeb9ac11d22433f133bb1644b8c26bdd4a0886c555 /test/stylesheet/tc_table_styles.rb
parentcd6fb747bbf2915f92f1fb0169e7f54d87aa1915 (diff)
downloadcaxlsx-ad7119b5927584e4fc735ce72ea69322c3e9acac.tar.gz
caxlsx-ad7119b5927584e4fc735ce72ea69322c3e9acac.zip
move requires out of specs and into helper that prepends lib directory for requires
Diffstat (limited to 'test/stylesheet/tc_table_styles.rb')
-rw-r--r--test/stylesheet/tc_table_styles.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/stylesheet/tc_table_styles.rb b/test/stylesheet/tc_table_styles.rb
index 825a18d8..cc8da9d5 100644
--- a/test/stylesheet/tc_table_styles.rb
+++ b/test/stylesheet/tc_table_styles.rb
@@ -1,5 +1,4 @@
-require 'test/unit'
-require 'axlsx.rb'
+require 'tc_helper.rb'
class TestTableStyles < Test::Unit::TestCase
@@ -15,13 +14,13 @@ class TestTableStyles < Test::Unit::TestCase
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")