summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2017-03-23 13:43:47 -0400
committerSam Rose <sam@gitlab.com>2017-03-25 09:32:26 -0400
commit97941d2cf5e3ef79198a7c39ca829fb038e23a64 (patch)
tree628f6156e2342532124e0516daefc506353e4072 /spec/controllers
parenta634e53ac5d4912777df4f55c77c345c3103205c (diff)
downloadgitlab-ce-97941d2cf5e3ef79198a7c39ca829fb038e23a64.tar.gz
Display flash message to unauthenticated user when creating new issue
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/issues_controller_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb
index c467ab9fb8a..734966d50b2 100644
--- a/spec/controllers/projects/issues_controller_spec.rb
+++ b/spec/controllers/projects/issues_controller_spec.rb
@@ -90,6 +90,7 @@ describe Projects::IssuesController do
it 'redirects to signin if not logged in' do
get :new, namespace_id: project.namespace, project_id: project
+ expect(flash[:notice]).to eq 'Please sign in to create the new issue.'
expect(response).to redirect_to(new_user_session_path)
end