Fix CSV reading in problem pull

This commit is contained in:
pfischbeck committed 2020-09-19 15:21:49 +02:00
1 parent 39a9b0b492
commit 4bfd3086bc
2 files changed
+5 -4

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ require 'csv'
class PullProblemsJobTest < ActiveJob::TestCase
test "should update problem count and titles" do
csv_string = CSV.generate do |csv|
csv << ["ID", "Description", "Published", "Updated", "Solved By"]
csv << [1, "Title of problem 1", 4.days.ago.to_i, 2.days.ago.to_i, 123]
csv << [2, "Title of problem 2", 4.days.ago.to_i, 2.days.ago.to_i, 123]
csv << [3, "Title of problem 3", 4.days.ago.to_i, 2.days.ago.to_i, 123]