Skip to content

Commit

Permalink
Update regional office param (#11706)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbwright authored Feb 3, 2023
1 parent 5ba38a4 commit 916f5a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app/models/saved_claim/education_benefits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ def send_5490_confirmation_email
'benefit' => benefit,
'date_submitted' => Time.zone.today.strftime('%B %d, %Y'),
'confirmation_number' => education_benefits_claim.confirmation_number,
'regional_office_details' => education_benefits_claim.regional_office
'regional_office_address' => regional_office_address
}
)
end

def regional_office_address
(_title, *address) = education_benefits_claim.regional_office.split("\n")
address.join("\n")
end

def add_education_benefits_claim
build_education_benefits_claim if education_benefits_claim.nil?
end
Expand Down
4 changes: 2 additions & 2 deletions spec/models/saved_claim/education_benefits_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'benefit' => 'The Fry Scholarship (Chapter 33)',
'date_submitted' => Time.zone.today.strftime('%B %d, %Y'),
'confirmation_number' => confirmation_number,
'regional_office_details' => "VA Regional Office\nP.O. Box 4616\nBuffalo, NY 14240-4616"
'regional_office_address' => "P.O. Box 4616\nBuffalo, NY 14240-4616"
}
)
end
Expand All @@ -61,7 +61,7 @@
'benefit' => 'Survivors’ and Dependents’ Educational Assistance (DEA, Chapter 35)',
'date_submitted' => Time.zone.today.strftime('%B %d, %Y'),
'confirmation_number' => confirmation_number,
'regional_office_details' => "VA Regional Office\nP.O. Box 4616\nBuffalo, NY 14240-4616"
'regional_office_address' => "P.O. Box 4616\nBuffalo, NY 14240-4616"
}
)
end
Expand Down

0 comments on commit 916f5a7

Please sign in to comment.