diff options
| author | Randy Morgan <[email protected]> | 2011-11-27 18:11:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-27 18:11:42 +0900 |
| commit | 4d16bfc43780e5d3f7368625700b583e3e98217a (patch) | |
| tree | bd477483555fe52f2690e7f15743d93b9667adef /test/workbook/worksheet/tc_row.rb | |
| parent | 11303a4d6664d9a7ff7bc408035d2ab70378a375 (diff) | |
| download | caxlsx-4d16bfc43780e5d3f7368625700b583e3e98217a.tar.gz caxlsx-4d16bfc43780e5d3f7368625700b583e3e98217a.zip | |
adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx.
Diffstat (limited to 'test/workbook/worksheet/tc_row.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_row.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb index 5dfdc601..f9b589e3 100644 --- a/test/workbook/worksheet/tc_row.rb +++ b/test/workbook/worksheet/tc_row.rb @@ -14,6 +14,12 @@ class TestRow < Test::Unit::TestCase assert_equal(@row.worksheet, @ws, "has a reference to the worksheet") end + def test_style + r = @ws.add_row([1,2,3,4,5]) + r.style=1 + r.cells.each { |c| assert_equal(c.style,1) } + end + def test_index assert_equal(@row.index, @row.worksheet.rows.index(@row)) end |
