From 46eadd2724cd841328d90c3143a485fcdf423ed6 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 1 Feb 2019 19:22:38 -0500 Subject: New upstream version 2.8.2 --- test/files/bad_link.xlsx | Bin 0 -> 8870 bytes test/files/cell-range-link.xlsx | Bin 0 -> 9508 bytes test/roo/test_excelx.rb | 5 +++++ 3 files changed, 5 insertions(+) create mode 100644 test/files/bad_link.xlsx create mode 100644 test/files/cell-range-link.xlsx (limited to 'test') diff --git a/test/files/bad_link.xlsx b/test/files/bad_link.xlsx new file mode 100644 index 0000000..30eaa0b Binary files /dev/null and b/test/files/bad_link.xlsx differ diff --git a/test/files/cell-range-link.xlsx b/test/files/cell-range-link.xlsx new file mode 100644 index 0000000..50bc067 Binary files /dev/null and b/test/files/cell-range-link.xlsx differ 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 -- cgit v1.2.3