diff options
author | Christiaan Van den Poel <christiaan.vandenpoel@gmail.com> | 2018-01-08 09:06:25 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-08 09:06:25 +0000 |
commit | 66ebb206b09f83288ee6acbd6d11b2963ae43c9b (patch) | |
tree | 7447b9e0647bebbe0eb5a59af0f068a35ce11e25 /spec/controllers | |
parent | 15f7f52b4034d4ede3b923e95df6884f36194245 (diff) | |
download | gitlab-ce-66ebb206b09f83288ee6acbd6d11b2963ae43c9b.tar.gz |
disables the shortcut to the issue boards when issues are disabled
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/boards_controller_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/projects/boards_controller_spec.rb b/spec/controllers/projects/boards_controller_spec.rb index 305af289531..4d765229bde 100644 --- a/spec/controllers/projects/boards_controller_spec.rb +++ b/spec/controllers/projects/boards_controller_spec.rb @@ -55,6 +55,16 @@ describe Projects::BoardsController do end end + context 'issues are disabled' do + let(:project) { create(:project, :issues_disabled) } + + it 'returns a not found 404 response' do + list_boards + + expect(response).to have_gitlab_http_status(404) + end + end + def list_boards(format: :html) get :index, namespace_id: project.namespace, project_id: project, |