Skip to content

Commit

Permalink
freeze time in time sensitive test
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jan 29, 2024
1 parent a312472 commit b1f4e7d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
RSpec.feature "Manage referrals" do
include CommonSteps

around :each do |example|
freeze_time do
example.run
end
end

scenario "Case worker with permissions views public referrals", type: :system do
given_the_service_is_open
and_the_referral_form_feature_is_active
Expand Down

0 comments on commit b1f4e7d

Please sign in to comment.