Skip to content

Commit

Permalink
Merge pull request #3281 from DFE-Digital/CAPT-1840-add-fe-reply-to-id
Browse files Browse the repository at this point in the history
Add reply-to-id to FE policy
  • Loading branch information
kenfodder authored Oct 10, 2024
2 parents 78e16e4 + 08647f1 commit f015bca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/policies/further_education_payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ module FurtherEducationPayments
# NOOP as PERSONAL_DATA_ATTRIBUTES_TO_RETAIN_FOR_EXTENDED_PERIOD is empty
EXTENDED_PERIOD_END_DATE = ->(start_of_academic_year) {}

# TODO: This is needed once the reply-to email address has been added to Gov Notify
def notify_reply_to_id
nil
"89939786-7078-4267-b197-ee505dfad8ae"
end

def verification_due_date_for_claim(claim)
Expand Down
20 changes: 20 additions & 0 deletions spec/models/further_education_payments_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "rails_helper"

RSpec.describe Policies::FurtherEducationPayments, type: :model do
it { is_expected.to include(BasePolicy) }

it do
expect(subject::VERIFIERS).to eq([
AutomatedChecks::ClaimVerifiers::Identity,
AutomatedChecks::ClaimVerifiers::ProviderVerification,
AutomatedChecks::ClaimVerifiers::Employment,
AutomatedChecks::ClaimVerifiers::StudentLoanPlan
])
end

specify {
expect(subject).to have_attributes(
notify_reply_to_id: "89939786-7078-4267-b197-ee505dfad8ae"
)
}
end

0 comments on commit f015bca

Please sign in to comment.