diff options
| author | Randy Morgan <[email protected]> | 2012-05-17 09:54:30 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-17 09:54:30 +0900 |
| commit | 0297bd574791ac7781352c20db2eeaa2c1cea3f3 (patch) | |
| tree | e526cfe5e8e7dabc52d808c32bda7df0b729bd13 /test | |
| parent | c32cac5afebcd4cc71923d71c3d331b78554d8c6 (diff) | |
| download | caxlsx-0297bd574791ac7781352c20db2eeaa2c1cea3f3.tar.gz caxlsx-0297bd574791ac7781352c20db2eeaa2c1cea3f3.zip | |
finishing off row properties.
Diffstat (limited to 'test')
| -rw-r--r-- | test/workbook/worksheet/tc_row.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb index d6835f05..a5bacdbf 100644 --- a/test/workbook/worksheet/tc_row.rb +++ b/test/workbook/worksheet/tc_row.rb @@ -66,6 +66,13 @@ class TestRow < Test::Unit::TestCase assert_equal(15, @row.height) end + + def test_ph + assert_raise(ArgumentError) { @row.ph = -3 } + assert_nothing_raised { @row.ph = true } + assert_equal(true, @row.ph) + end + def test_hidden assert_raise(ArgumentError) { @row.hidden = -3 } assert_nothing_raised { @row.hidden = true } @@ -92,7 +99,7 @@ class TestRow < Test::Unit::TestCase def test_to_xml_string @row.height = 20 - @row.style = 1 + @row.s = 1 @row.outlineLevel = 2 @row.collapsed = true @row.hidden = true |
