summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_pivot_table.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-09-12 22:13:09 +0900
committerRandy Morgan <[email protected]>2013-09-13 00:08:39 +0900
commitb5a6263ec3ec0a729c9b2bec86c22d1ead33eb65 (patch)
tree4787d30e49eb8425885a37af9008aafa69fb9419 /test/workbook/worksheet/tc_pivot_table.rb
parent923e7b7ff9157bdfe95584b8d311e2f6099ab71d (diff)
downloadcaxlsx-b5a6263ec3ec0a729c9b2bec86c22d1ead33eb65.tar.gz
caxlsx-b5a6263ec3ec0a729c9b2bec86c22d1ead33eb65.zip
repair pivot table data ref populate and bring coverage back up to 100%
Diffstat (limited to 'test/workbook/worksheet/tc_pivot_table.rb')
-rw-r--r--test/workbook/worksheet/tc_pivot_table.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_pivot_table.rb b/test/workbook/worksheet/tc_pivot_table.rb
index 56ac4bd4..3c42d605 100644
--- a/test/workbook/worksheet/tc_pivot_table.rb
+++ b/test/workbook/worksheet/tc_pivot_table.rb
@@ -47,7 +47,7 @@ class TestPivotTable < Test::Unit::TestCase
end
def test_add_pivot_table_with_config
- pivot_table = @ws.add_pivot_table('G5:G6', 'A1:D5') do |pt|
+ pivot_table = @ws.add_pivot_table('G5:G6', 'A1:E5') do |pt|
pt.rows = ['Year', 'Month']
pt.columns = ['Type']
pt.data = ['Sales']
@@ -57,6 +57,7 @@ class TestPivotTable < Test::Unit::TestCase
assert_equal(['Type'], pivot_table.columns)
assert_equal([{:ref=>"Sales"}], pivot_table.data)
assert_equal(['Region'], pivot_table.pages)
+ shared_test_pivot_table_xml_validity(pivot_table)
end
def test_add_pivot_table_with_options_on_data_field