summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-09-14 16:01:01 +0900
committerRandy Morgan <[email protected]>2012-09-14 16:01:01 +0900
commitbcf38488906554162d1ec6dc04837f802873b567 (patch)
treef089c6d608bfa5e64401060bdccb2bdcf3a62059 /test
parent397af756fc7ff412dd7472e845143a5223a81a83 (diff)
downloadcaxlsx-bcf38488906554162d1ec6dc04837f802873b567.tar.gz
caxlsx-bcf38488906554162d1ec6dc04837f802873b567.zip
incorporate deeper check for cell size and adjust for bold
Diffstat (limited to 'test')
-rw-r--r--test/workbook/worksheet/tc_cell.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb
index 555fcff7..7188bc1d 100644
--- a/test/workbook/worksheet/tc_cell.rb
+++ b/test/workbook/worksheet/tc_cell.rb
@@ -275,6 +275,12 @@ class TestCell < Test::Unit::TestCase
assert_equal(sz, @c.row.worksheet.workbook.styles.fonts.first.sz)
end
+ def test_font_size_with_bolding
+ @c.style = @c.row.worksheet.workbook.styles.add_style :b => true
+ sz = @c.send(:font_size)
+ assert_equal(@c.row.worksheet.workbook.styles.fonts.first.sz * 1.5, @c.send(:font_size))
+ end
+
def test_font_size_with_custom_sz
@c.style = @c.row.worksheet.workbook.styles.add_style :sz => 52
sz = @c.send(:font_size)