test/helper.rb in write_xlsx-0.90.0 vs test/helper.rb in write_xlsx-0.97.0
- old
+ new
@@ -20,10 +20,15 @@
class Writexlsx::Workbook
#
# Set the default index for each format. This is mainly used for testing.
#
def set_default_xf_indices #:nodoc:
- @formats.formats.each { |format| format.get_xf_index }
+ # Delete the default url format.
+ @formats.formats.delete_at(1)
+
+ @formats.formats.each do |format|
+ format.get_xf_index
+ end
end
end
class Minitest::Test
def setup_dir_var