From 1ea1bf5b7f660b01f609389fe8d31b15ea70558b Mon Sep 17 00:00:00 2001 From: Malick Diarra Date: Wed, 18 Dec 2024 09:08:05 -0500 Subject: [PATCH] changelog: Upcoming Features, Select email workflow, select email supports single email (#11656) --- app/controllers/sign_up/select_email_controller.rb | 5 ----- .../sign_up/select_email_controller_spec.rb | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/app/controllers/sign_up/select_email_controller.rb b/app/controllers/sign_up/select_email_controller.rb index 2d691d85d8a..9775efd1603 100644 --- a/app/controllers/sign_up/select_email_controller.rb +++ b/app/controllers/sign_up/select_email_controller.rb @@ -7,7 +7,6 @@ class SelectEmailController < ApplicationController check_or_render_not_found -> { IdentityConfig.store.feature_select_email_to_share_enabled } before_action :confirm_two_factor_authenticated before_action :verify_needs_completions_screen - before_action :verify_multiple_emails def show @sp_name = current_sp.friendly_name || sp.agency&.name @@ -56,10 +55,6 @@ def last_email end end - def verify_multiple_emails - redirect_to sign_up_completed_path if user_emails.count < 2 - end - def verify_needs_completions_screen redirect_to account_url unless needs_completion_screen_reason end diff --git a/spec/controllers/sign_up/select_email_controller_spec.rb b/spec/controllers/sign_up/select_email_controller_spec.rb index e151c14ebd7..7eefddb0368 100644 --- a/spec/controllers/sign_up/select_email_controller_spec.rb +++ b/spec/controllers/sign_up/select_email_controller_spec.rb @@ -61,16 +61,6 @@ end end - context 'with only one verified email address' do - let(:user) { create(:user) } - - it 'redirects to the sign up completed path' do - response - - expect(response).to redirect_to(sign_up_completed_path) - end - end - context 'when users has max number of emails' do before do allow(user).to receive(:email_address_count).and_return(2)