summaryrefslogtreecommitdiffhomepage
path: root/test/tc_package.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-12-15 10:39:37 +0900
committerRandy Morgan <[email protected]>2012-12-15 10:39:37 +0900
commit054de56d12e203a5f0696f98ac9fad3159e7abc1 (patch)
treec29ef8fb0bd35ef6170d5aa26cbd9bc8960a0a30 /test/tc_package.rb
parentb1600deadaafdb396c5cc7ca9d448e8adab8ac11 (diff)
downloadcaxlsx-054de56d12e203a5f0696f98ac9fad3159e7abc1.tar.gz
caxlsx-054de56d12e203a5f0696f98ac9fad3159e7abc1.zip
Added methods to simplify outlining with specs
worksheet#outline_rows worksheet#outline_columns
Diffstat (limited to 'test/tc_package.rb')
-rw-r--r--test/tc_package.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/tc_package.rb b/test/tc_package.rb
index be303419..8a25d946 100644
--- a/test/tc_package.rb
+++ b/test/tc_package.rb
@@ -7,8 +7,9 @@ class TestPackage < Test::Unit::TestCase
ws = @package.workbook.add_worksheet
ws.add_row ['Can', 'we', 'build it?']
ws.add_row ['Yes!', 'We', 'can!']
+ ws.outline_rows 0, 1
+ ws.outline_columns 0, 1
ws.add_hyperlink :ref => ws.rows.first.cells.last, :location => 'https://github.com/randym'
- # TODO this needs to be confirmed and checked. Validation errors should not be happening here!!!!!!
ws.workbook.add_defined_name("#{ws.name}!A1:C2", :name => '_xlnm.Print_Titles', :hidden => true)
ws.protect_range('A1:C1')
ws.protect_range(ws.rows.last.cells)
@@ -145,7 +146,7 @@ class TestPackage < Test::Unit::TestCase
#no mystery parts
- assert_equal(p.size, 24)
+ assert_equal(24, p.size)
end