test/regression/test_hyperlink03.rb in write_xlsx-0.90.0 vs test/regression/test_hyperlink03.rb in write_xlsx-0.97.0
- old
+ new
@@ -14,9 +14,13 @@
@xlsx = 'hyperlink03.xlsx'
workbook = WriteXLSX.new(@io)
worksheet1 = workbook.add_worksheet
worksheet2 = workbook.add_worksheet
+ # Turn off default URL format for testing.
+ worksheet1.instance_variable_set(:@default_url_format, nil)
+ worksheet2.instance_variable_set(:@default_url_format, nil)
+
worksheet1.write_url('A1', 'http://www.perl.org/')
worksheet1.write_url('D4', 'http://www.perl.org/')
worksheet1.write_url('A8', 'http://www.perl.org/')
worksheet1.write_url('B6', 'http://www.cpan.org/')
worksheet1.write_url('F12', 'http://www.cpan.org/')