Skip to content

Commit

Permalink
Updated spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockster160 committed Oct 24, 2024
1 parent 24f5e51 commit aebd208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/services/jarvis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def jarvis(msg, user=@user)
end

before do
Time.zone = User.timezone
Timecop.freeze(Time.local(2022, 6, 24, 5, 45))
end

Expand Down Expand Up @@ -512,6 +513,7 @@ def jarvis(msg, user=@user)
"in an hour and 20 minutes" => [Time.local(2022, 6, 24, 7, 05), "today at 7:05am"],
"in an hour and a half" => [Time.local(2022, 6, 24, 7, 15), "today at 7:15am"],
"in 3 and a half hours" => [Time.local(2022, 6, 24, 9, 15), "today at 9:15am"],
"in 3 hours and 30 minutes" => [Time.local(2022, 6, 24, 9, 15), "today at 9:15am"],
"in 3.5 hours" => [Time.local(2022, 6, 24, 9, 15), "today at 9:15am"],
"tonight" => [Time.local(2022, 6, 24, 22, 0), "today at 10pm"],
"at 11:15 tomorrow" => [Time.local(2022, 6, 25, 11, 15), "tomorrow at 11:15am"],
Expand Down

0 comments on commit aebd208

Please sign in to comment.