Skip to content
Browse files

Fix failing year/month test

This test was failing because daylight savings time (DST) is in
effect at the start of November 2013 and not at the end of that
month.  I opted to move test the a month that is (hopefully)
immune from season-related timezone offset changes: December.
  • Loading branch information...
1 parent 4237b1c commit 85aba4bedff45e911dfaed76543b1cf435f46583 Christian Murphy committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_parsing.rb
View
4 test/test_parsing.rb
@@ -367,8 +367,8 @@ def test_handle_sy_sm
time = parse_now("2012-06")
assert_equal Time.local(2012, 06, 16), time
- time = parse_now("2013/11")
- assert_equal Time.local(2013, 11, 16), time
+ time = parse_now("2013/12")
+ assert_equal Time.local(2013, 12, 16, 12, 0), time
end
def test_handle_r

0 comments on commit 85aba4b

Please sign in to comment.
Something went wrong with that request. Please try again.