Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reply-to-id to FE policy #3281

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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