Skip to content

Commit

Permalink
Fix specs for DateTime parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
demimismo committed May 8, 2018
1 parent 5930b8f commit 9973489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified spec/fixtures/sample_dates.xlsx
Binary file not shown.
5 changes: 2 additions & 3 deletions spec/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

@expected_datetime_rows = [
{'A3' => 'Date', 'B3' => Date.parse('2018-01-01')},
{'A4' => 'Date', 'B4' => Time.parse('2018-11-05 10:59:59')},
{'A5' => 'Date', 'B5' => Time.parse('2018-06-30')}]
{'A4' => 'Datetime 00:00:00', 'B4' => Time.parse('2018-01-01 00:00:00')},
{'A5' => 'Datetime', 'B5' => Time.parse('2018-01-01 23:59:59')}]
end

after(:all) do
Expand All @@ -49,7 +49,6 @@
end

(2..5).each do |number|
puts rows[number]
expect(rows[number]).to eq(@expected_datetime_rows[number-2])
end
end
Expand Down

0 comments on commit 9973489

Please sign in to comment.