Skip to content

Commit 0311973

Browse files
authored
changelog: Internal, Doc Auth, update spec to use time zone parse to mitigate randomized time zone set (#12767)
1 parent 843be64 commit 0311973

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec/presenters/idv/in_person/ready_to_verify_presenter_spec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
let(:user) { build(:user) }
55
let(:profile) { build(:profile, user: user) }
66
let(:current_address_matches_id) { true }
7-
let(:created_at) { described_class::USPS_SERVER_TIMEZONE.parse('2023-06-14T00:00:00Z') }
8-
let(:enrollment_established_at) do
9-
described_class::USPS_SERVER_TIMEZONE.parse('2023-07-14T00:00:00Z')
10-
end
7+
let(:created_at) { Time.zone.parse('2023-06-14') }
8+
let(:enrollment_established_at) { Time.zone.parse('2023-07-14') }
119
let(:enrollment_selected_location_details) do
1210
JSON.parse(UspsInPersonProofing::Mock::Fixtures.enrollment_selected_location_details)
1311
end
@@ -25,7 +23,7 @@
2523
subject(:presenter) { described_class.new(enrollment: enrollment) }
2624

2725
describe '#formatted_due_date' do
28-
let(:enrollment_established_at) { DateTime.new(2024, 7, 5) }
26+
let(:enrollment_established_at) { Time.zone.parse('2024-07-05') }
2927

3028
context 'when the enrollment has an enrollment_established_at time' do
3129
[

0 commit comments

Comments
 (0)