diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-24 15:49:22 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-24 15:49:25 +0300 |
commit | caefca87e40245c414f984c85f49109358b78118 (patch) | |
tree | 1dd27858e3d3b4d2f70b90d8852346b691a8ff56 /spec | |
parent | f339444063e41746886805746cb5a3557e0c9764 (diff) |
Merge branch 'security-fix-new-issues-login-message-11-7' into 'security-11-7'
[11.7] Use common error for not logged in users when creating issues
See merge request gitlab/gitlabhq!2811
(cherry picked from commit f51985622240a3ea84b122a01c0fdb20c4320443)
8179795d Use common error for unauthenticated users
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/issues_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb index 35cf4ea4c68..e5f8a5fb511 100644 --- a/spec/controllers/projects/issues_controller_spec.rb +++ b/spec/controllers/projects/issues_controller_spec.rb @@ -131,7 +131,7 @@ describe Projects::IssuesController do it 'redirects to signin if not logged in' do get :new, params: { namespace_id: project.namespace, project_id: project } - expect(flash[:notice]).to eq 'Please sign in to create the new issue.' + expect(flash[:alert]).to eq 'You need to sign in or sign up before continuing.' expect(response).to redirect_to(new_user_session_path) end |