diff options
| author | Randy Morgan <[email protected]> | 2012-12-19 23:38:24 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-12-19 23:38:24 +0900 |
| commit | dad342a7bae74a2b628cb9d3ebf440c73e163ad9 (patch) | |
| tree | bc49fa4f03f6524a8d4fb4852b52ff50c640a5e4 /test | |
| parent | 054de56d12e203a5f0696f98ac9fad3159e7abc1 (diff) | |
| download | caxlsx-dad342a7bae74a2b628cb9d3ebf440c73e163ad9.tar.gz caxlsx-dad342a7bae74a2b628cb9d3ebf440c73e163ad9.zip | |
changed outline_row to outline_level_row to minimize confusion with borders
Diffstat (limited to 'test')
| -rw-r--r-- | test/tc_package.rb | 4 | ||||
| -rw-r--r-- | test/workbook/worksheet/tc_worksheet.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/tc_package.rb b/test/tc_package.rb index 8a25d946..5fd411e0 100644 --- a/test/tc_package.rb +++ b/test/tc_package.rb @@ -7,8 +7,8 @@ class TestPackage < Test::Unit::TestCase ws = @package.workbook.add_worksheet ws.add_row ['Can', 'we', 'build it?'] ws.add_row ['Yes!', 'We', 'can!'] - ws.outline_rows 0, 1 - ws.outline_columns 0, 1 + 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' ws.workbook.add_defined_name("#{ws.name}!A1:C2", :name => '_xlnm.Print_Titles', :hidden => true) ws.protect_range('A1:C1') diff --git a/test/workbook/worksheet/tc_worksheet.rb b/test/workbook/worksheet/tc_worksheet.rb index 846c2491..8280aca0 100644 --- a/test/workbook/worksheet/tc_worksheet.rb +++ b/test/workbook/worksheet/tc_worksheet.rb @@ -476,17 +476,17 @@ class TestWorksheet < Test::Unit::TestCase assert(doc.xpath('//sheetPr[@filterMode="true"]')) end - def test_outline_rows + def test_outline_level_rows 3.times { @ws.add_row [1,2,3] } - @ws.outline_rows 0, 2 + @ws.outline_level_rows 0, 2 assert_equal(1, @ws.rows[0].outline_level) assert_equal(true, @ws.rows[2].hidden) assert_equal(true, @ws.sheet_view.show_outline_symbols) end - def test_outline_columns + def test_outline_level_columns 3.times { @ws.add_row [1,2,3] } - @ws.outline_columns 0, 2 + @ws.outline_level_columns 0, 2 assert_equal(1, @ws.column_info[0].outline_level) assert_equal(true, @ws.column_info[2].hidden) assert_equal(true, @ws.sheet_view.show_outline_symbols) |
