summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_table_style_info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/workbook/worksheet/tc_table_style_info.rb')
-rw-r--r--test/workbook/worksheet/tc_table_style_info.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/workbook/worksheet/tc_table_style_info.rb b/test/workbook/worksheet/tc_table_style_info.rb
index 3d71dc9b..1da1068d 100644
--- a/test/workbook/worksheet/tc_table_style_info.rb
+++ b/test/workbook/worksheet/tc_table_style_info.rb
@@ -1,4 +1,4 @@
-require 'tc_helper.rb'
+require 'tc_helper'
class TestTableStyleInfo < Test::Unit::TestCase
def setup
@@ -17,6 +17,7 @@ class TestTableStyleInfo < Test::Unit::TestCase
def test_initialize
table_style = Axlsx::TableStyleInfo.new @options
+
@options.each do |key, value|
assert_equal(value, table_style.send(key.to_sym))
end
@@ -24,7 +25,7 @@ class TestTableStyleInfo < Test::Unit::TestCase
def test_boolean_properties
table_style = Axlsx::TableStyleInfo.new
- @options.keys.each do |key|
+ @options.each_key do |key|
assert_nothing_raised { table_style.send("#{key.to_sym}=", true) }
assert_raises(ArgumentError) { table_style.send(key.to_sym, 'foo') }
end