diff options
| author | 2019-01-14 01:41:26 -0500 | |
|---|---|---|
| committer | 2019-01-14 01:41:26 -0500 | |
| commit | 6aa7e04e06423e7d92ede727489ea346e88f7108 (patch) | |
| tree | 9bdec92fd17898b662235bc0a491de827990130c /test/formatters/test_csv.rb | |
| parent | c59817e300dbe1aab3120cad603cdb14b14ed78b (diff) | |
| parent | dddfa903d2b856146f05ffb4415c31d6127bb5bf (diff) | |
Update upstream source from tag 'upstream/2.8.0'
Update to upstream version '2.8.0'
with Debian dir 569f5866fbcf4e449c6c48dc5d20a3ab54f95252
Diffstat (limited to 'test/formatters/test_csv.rb')
| -rw-r--r-- | test/formatters/test_csv.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/formatters/test_csv.rb b/test/formatters/test_csv.rb index a4443f4..d47d93d 100644 --- a/test/formatters/test_csv.rb +++ b/test/formatters/test_csv.rb @@ -100,6 +100,23 @@ class TestRooFormatterCSV < Minitest::Test end end + def test_bug_datetime_offset_change + # DO NOT REMOVE Asia/Calcutta + [nil, "US/Eastern", "US/Pacific", "Asia/Calcutta"].each do |zone| + with_timezone(zone) do + with_each_spreadsheet(name: "datetime_timezone_ist_offset_change", format: %i[excelx openoffice libreoffice]) do |workbook| + Dir.mktmpdir do |tempdir| + datetime_csv_file = File.join(tempdir, "datetime_timezone_ist_offset_change.csv") + + assert workbook.to_csv(datetime_csv_file) + assert File.exist?(datetime_csv_file) + assert_equal "", file_diff("#{TESTDIR}/so_datetime_timezone_ist_offset_change.csv", datetime_csv_file) + end + end + end + end + end + def test_true_class assert_equal "true", cell_to_csv(1, 1) end |
