diff options
| author | 2019-02-01 19:23:07 -0500 | |
|---|---|---|
| committer | 2019-02-01 19:23:07 -0500 | |
| commit | 5a669c40673841aad681da3fe343c4a902a3bf6c (patch) | |
| tree | eec5e8bf16e20eef2f192ca056e8702d47c5d989 /test | |
| parent | eeb0202b3730c4b9596b6b409f565e9f5a8dce4c (diff) | |
| parent | 46eadd2724cd841328d90c3143a485fcdf423ed6 (diff) | |
Update upstream source from tag 'upstream/2.8.2'
Update to upstream version '2.8.2'
with Debian dir b1ec8fbbaccffac36549be25adf232dec8fac090
Diffstat (limited to 'test')
| -rw-r--r-- | test/files/bad_link.xlsx | bin | 0 -> 8870 bytes | |||
| -rw-r--r-- | test/files/cell-range-link.xlsx | bin | 0 -> 9508 bytes | |||
| -rw-r--r-- | test/roo/test_excelx.rb | 5 |
3 files changed, 5 insertions, 0 deletions
diff --git a/test/files/bad_link.xlsx b/test/files/bad_link.xlsx Binary files differnew file mode 100644 index 0000000..30eaa0b --- /dev/null +++ b/test/files/bad_link.xlsx diff --git a/test/files/cell-range-link.xlsx b/test/files/cell-range-link.xlsx Binary files differnew file mode 100644 index 0000000..50bc067 --- /dev/null +++ b/test/files/cell-range-link.xlsx diff --git a/test/roo/test_excelx.rb b/test/roo/test_excelx.rb index 75ecfa2..9d460af 100644 --- a/test/roo/test_excelx.rb +++ b/test/roo/test_excelx.rb @@ -302,6 +302,11 @@ class TestRworkbookExcelx < Minitest::Test end end + def test_handles_link_without_hyperlink + workbook = Roo::Spreadsheet.open(File.join(TESTDIR, "bad_link.xlsx")) + assert_equal "Test", workbook.cell(1, 1) + end + # Excel has two base date formats one from 1900 and the other from 1904. # see #test_base_dates_in_excel def test_base_dates_in_excelx |
