Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `begin' for nil:NilClass #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/test_parsing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,11 @@ def test_relative_to_an_hour_after
assert_equal Time.local(2006, 8, 16, 14, 30), parse_now("half past 2")
end

def test_relative_to_a_date_after
assert_equal Time.local(2023, 7, 2, 17, 30),
parse_now('five years after 11 May 2017')
end

def test_parse_only_complete_pointers
assert_equal parse_now("eat pasty buns today at 2pm"), @time_2006_08_16_14_00_00
assert_equal parse_now("futuristically speaking today at 2pm"), @time_2006_08_16_14_00_00
Expand Down