Skip to content

Commit

Permalink
Enable some disabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davispuh committed Jan 4, 2015
1 parent 2a89c40 commit 7b0bbb7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions test/test_parsing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def test_handle_o_r_s_r
time = parse_now("10th wednesday in november")
assert_equal nil, time

# time = parse_now("3rd wednesday in 2007")
# assert_equal Time.local(2007, 1, 20, 12), time
time = parse_now("3rd saturday in 2007")
assert_equal Time.local(2007, 1, 20, 12), time
end

def test_handle_o_r_g_r
Expand Down Expand Up @@ -945,8 +945,8 @@ def test_parse_guess_s_r_p
time = parse_now("3 days ago", :guess => :begin)
assert_equal Time.local(2006, 8, 13, 14), time

#time = parse_now("1 monday ago")
#assert_equal Time.local(2006, 8, 14, 12), time
time = parse_now("1 monday ago", :guess => :begin)
assert_equal Time.local(2006, 8, 14, 14), time

time = parse_now("5 mornings ago")
assert_equal Time.local(2006, 8, 12, 9), time
Expand Down Expand Up @@ -1409,13 +1409,11 @@ def test_days_in_november
t1 = Chronic.parse('1st saturday in november', :now => Time.local(2007))
assert_equal Time.local(2007, 11, 3, 12), t1

# t1 = Chronic.parse('1st sunday in november', :now => Time.local(2007))
# assert_equal Time.local(2007, 11, 4, 12), t1
t1 = Chronic.parse('1st sunday in november', :now => Time.local(2007))
assert_equal Time.local(2007, 11, 4, 12), t1

# Chronic.debug = true
#
# t1 = Chronic.parse('1st monday in november', :now => Time.local(2007))
# assert_equal Time.local(2007, 11, 5, 11), t1
t1 = Chronic.parse('1st monday in november', :now => Time.local(2007))
assert_equal Time.local(2007, 11, 5, 12), t1
end

def test_now_changes
Expand Down

0 comments on commit 7b0bbb7

Please sign in to comment.