diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5524574fed7..a2c31c27a30 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -42,7 +42,7 @@ def session_with_trust? end def page_with_trust? - current_page?(controller: 'sign_up/passwords', action: 'new') || + current_page?(controller: 'sign_up/email_confirmations', action: 'create') || current_page?(controller: 'users/reset_passwords', action: 'edit') end diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 6243c12af4c..4aa30a9395a 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -34,7 +34,7 @@ context 'current path is email confirmation path' do it 'returns true' do allow(helper).to receive(:current_page?).with( - controller: 'sign_up/passwords', action: 'new' + controller: 'sign_up/email_confirmations', action: 'create' ).and_return(true) expect(helper.session_with_trust?).to eq true @@ -44,7 +44,7 @@ context 'current path is reset password path' do it 'returns true' do allow(helper).to receive(:current_page?).with( - controller: 'sign_up/passwords', action: 'new' + controller: 'sign_up/email_confirmations', action: 'create' ).and_return(true) allow(helper).to receive(:current_page?).with( controller: 'users/reset_passwords', action: 'edit'