-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GOV.UK One Login ID and identityVerified boolean to TRN reques…
…t params
- Loading branch information
1 parent
fa0c8e5
commit 5404ce0
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,8 @@ | |
firstName: "Given", | ||
genderCode: "NotAvailable", | ||
inductionRequired: true, | ||
identityVerified: true, | ||
oneLoginUserSubject: nil, | ||
initialTeacherTraining: { | ||
ageRangeFrom: 7, | ||
ageRangeTo: 11, | ||
|
@@ -84,5 +86,51 @@ | |
}, | ||
) | ||
end | ||
|
||
context "when the teacher has a GOV.UK One Login ID" do | ||
let(:teacher) do | ||
create(:teacher, email: "[email protected]", gov_one_id: "12345678") | ||
end | ||
|
||
it do | ||
expect(subject).to eq( | ||
{ | ||
address: { | ||
}, | ||
birthDate: "1960-01-01", | ||
emailAddress: "[email protected]", | ||
firstName: "Given", | ||
genderCode: "NotAvailable", | ||
inductionRequired: true, | ||
identityVerified: true, | ||
oneLoginUserSubject: "12345678", | ||
initialTeacherTraining: { | ||
ageRangeFrom: 7, | ||
ageRangeTo: 11, | ||
programmeStartDate: "1990-01-01", | ||
programmeEndDate: "1995-01-01", | ||
providerUkprn: nil, | ||
subject1: "100425", | ||
subject2: "100321", | ||
subject3: nil, | ||
trainingCountryCode: "FR", | ||
}, | ||
lastName: "Family", | ||
middleName: nil, | ||
qtsDate: "2024-01-07", | ||
qualification: { | ||
class: "NotKnown", | ||
countryCode: "FR", | ||
date: "1996-01-01", | ||
heQualificationType: "Unknown", | ||
providerUkprn: nil, | ||
}, | ||
recognitionRoute: "OverseasTrainedTeachers", | ||
teacherType: "OverseasQualifiedTeacher", | ||
underNewOverseasRegulations: true, | ||
}, | ||
) | ||
end | ||
end | ||
end | ||
end |