-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove account confirmation logic from Jobseekers
Confirmation of the account/new email/etc is managed by GovUK OneLogin.
- Loading branch information
Showing
15 changed files
with
3 additions
and
200 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 was deleted.
Oops, something went wrong.
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
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
13 changes: 0 additions & 13 deletions
13
app/views/jobseekers/account_mailer/confirmation_instructions.text.erb
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
app/views/jobseekers/confirmations/_new_hidden_email.html.slim
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
app/views/jobseekers/confirmations/_new_with_email.html.slim
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
app/views/jobseekers/confirmations/already_confirmed.html.slim
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -17,38 +17,6 @@ | |
end | ||
end | ||
|
||
describe "#needs_email_confirmation?" do | ||
subject(:jobseeker) { build_stubbed(:jobseeker) } | ||
|
||
context "when the user is confirmed" do | ||
before { jobseeker.confirmed_at = Time.current } | ||
|
||
context "when the user does not have a new unconfirmed email address" do | ||
before { jobseeker.unconfirmed_email = nil } | ||
it { is_expected.not_to be_needs_email_confirmation } | ||
end | ||
|
||
context "when the user has a new unconfirmed email address" do | ||
before { jobseeker.unconfirmed_email = "[email protected]" } | ||
it { is_expected.to be_needs_email_confirmation } | ||
end | ||
end | ||
|
||
context "when the user is not confirmed" do | ||
before { jobseeker.confirmed_at = nil } | ||
|
||
context "when the user does not have a new unconfirmed email address" do | ||
before { jobseeker.unconfirmed_email = nil } | ||
it { is_expected.to be_needs_email_confirmation } | ||
end | ||
|
||
context "when the user has a new unconfirmed email address" do | ||
before { jobseeker.unconfirmed_email = "[email protected]" } | ||
it { is_expected.to be_needs_email_confirmation } | ||
end | ||
end | ||
end | ||
|
||
describe ".create_from_govuk_one_login" do | ||
let(:email) { "[email protected]" } | ||
let(:govuk_one_login_id) { "urn:fdc:gov.uk:2022:VtcZjnU4Sif2oyJZola3OkN0e3Jeku1cIMN38rFlhU4" } | ||
|