summaryrefslogtreecommitdiffhomepage
path: root/test/tc_package.rb
diff options
context:
space:
mode:
authorrandym <[email protected]>2018-02-08 00:14:12 +0900
committerrandym <[email protected]>2018-02-08 00:14:12 +0900
commit747ff93269c518db21c9869b61b1d1470395b502 (patch)
tree16c8d9c416a02fc7ca8bd91e058ea61c72dfc7ce /test/tc_package.rb
parent3f34514ecf53fb4a3401b5336833bbeb439efe2a (diff)
downloadcaxlsx-747ff93269c518db21c9869b61b1d1470395b502.tar.gz
caxlsx-747ff93269c518db21c9869b61b1d1470395b502.zip
chore(coverage) increase coverage and cleanup
Diffstat (limited to 'test/tc_package.rb')
-rw-r--r--test/tc_package.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/tc_package.rb b/test/tc_package.rb
index 58ff53b0..d89f35b0 100644
--- a/test/tc_package.rb
+++ b/test/tc_package.rb
@@ -7,6 +7,12 @@ class TestPackage < Test::Unit::TestCase
ws = @package.workbook.add_worksheet
ws.add_row ['Can', 'we', 'build it?']
ws.add_row ['Yes!', 'We', 'can!']
+ @rt = Axlsx::RichText.new
+ @rt.add_run "run 1", :b => true, :i => false
+ ws.add_row [@rt]
+
+ ws.rows.last.add_cell('b', :type => :text)
+
ws.outline_level_rows 0, 1
ws.outline_level_columns 0, 1
ws.add_hyperlink :ref => ws.rows.first.cells.last, :location => 'https://github.com/randym'
@@ -193,6 +199,7 @@ class TestPackage < Test::Unit::TestCase
def test_shared_strings_requires_part
@package.use_shared_strings = true
+ @package.to_stream #ensure all cell_serializer paths are hit
p = @package.send(:parts)
assert_equal(p.select{ |part| part[:entry] =~/xl\/sharedStrings.xml/}.size, 1, "shared strings table missing")
end