Skip to content

Commit

Permalink
Update spec to check presence in error_details
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jan 28, 2025
1 parent a395b6b commit 39f0030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/idv/by_mail/enter_code_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@

failed_gpo_submission_events =
@analytics.events['IdV: enter verify by mail code submitted']
.reject { |event_attributes| event_attributes[:errors].blank? }
.reject { |event_attributes| event_attributes[:error_details].blank? }

successful_gpo_submission_events =
@analytics.events['IdV: enter verify by mail code submitted']
.select { |event_attributes| event_attributes[:errors].blank? }
.select { |event_attributes| event_attributes[:error_details].blank? }

expect(failed_gpo_submission_events.count).to eq(max_attempts - 1)
expect(successful_gpo_submission_events.count).to eq(1)
Expand Down

0 comments on commit 39f0030

Please sign in to comment.