Skip to content

Commit

Permalink
Update example data with decline reasons
Browse files Browse the repository at this point in the history
This ensures that declined application have ticked decline reasons so it
looks more realistic.
  • Loading branch information
thomasleese committed Nov 9, 2023
1 parent 1629ed4 commit 6eb397c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/tasks/example_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,18 @@ def create_application_forms

assessment = AssessmentFactory.call(application_form:)

if application_form.waiting_on?
if application_form.declined?
FactoryBot.create(
:selected_failure_reason,
:fi_requestable,
assessment_section: assessment.sections.first,
)
FactoryBot.create(
:selected_failure_reason,
:declinable,
assessment_section: assessment.sections.second,
)
elsif application_form.waiting_on?
if application_form.teaching_authority_provides_written_statement
FactoryBot.create(
:professional_standing_request,
Expand Down

0 comments on commit 6eb397c

Please sign in to comment.