Skip to content

Commit

Permalink
Merge pull request #19595 from department-of-veterans-affairs/dev-sup…
Browse files Browse the repository at this point in the history
…port/APPEALS-31522

add timecop to fix tests
  • Loading branch information
craigrva authored Sep 28, 2023
2 parents 7d41b9e + 013a238 commit c38bf63
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@
)
end

before { Timecop.travel(Time.zone.local(2020, 9, 1, 18, 0, 0)) }

context "The TaskTimer for the hold period was not created yet" do
it "returns the end date period" do
expect((post_task.timer_ends_at - post_task.created_at.prev_day).to_i / 1.day).to eq(hold_days)
Expand Down

0 comments on commit c38bf63

Please sign in to comment.