diff options
| author | randym <[email protected]> | 2018-02-08 00:14:12 +0900 |
|---|---|---|
| committer | randym <[email protected]> | 2018-02-08 00:14:12 +0900 |
| commit | 747ff93269c518db21c9869b61b1d1470395b502 (patch) | |
| tree | 16c8d9c416a02fc7ca8bd91e058ea61c72dfc7ce /test/drawing/tc_title.rb | |
| parent | 3f34514ecf53fb4a3401b5336833bbeb439efe2a (diff) | |
| download | caxlsx-747ff93269c518db21c9869b61b1d1470395b502.tar.gz caxlsx-747ff93269c518db21c9869b61b1d1470395b502.zip | |
chore(coverage) increase coverage and cleanup
Diffstat (limited to 'test/drawing/tc_title.rb')
| -rw-r--r-- | test/drawing/tc_title.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/drawing/tc_title.rb b/test/drawing/tc_title.rb index 84345150..95e44602 100644 --- a/test/drawing/tc_title.rb +++ b/test/drawing/tc_title.rb @@ -19,6 +19,11 @@ class TestTitle < Test::Unit::TestCase assert(@title.cell == nil) end + def test_initialize_title_size + title = Axlsx::Title.new 'bob', 90 + assert_equal "90", title.text_size + end + def test_text assert_raise(ArgumentError, "text must be a string") { @title.text = 123 } @title.cell = @row.cells.first |
