test/regression/test_hyperlink20.rb in write_xlsx-0.90.0 vs test/regression/test_hyperlink20.rb in write_xlsx-0.97.0
- old
+ new
@@ -17,9 +17,12 @@
worksheet = workbook.add_worksheet
format1 = workbook.add_format(:color => 'blue', :underline => 1)
format2 = workbook.add_format(:color => 'red', :underline => 1)
+ # Turn off default URL format for testing.
+ worksheet.instance_variable_set(:@default_url_format, nil)
+
worksheet.write_url('A1', 'http://www.python.org/1', format1)
worksheet.write_url('A2', 'http://www.python.org/2', format2)
workbook.close