diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-06 18:21:10 +0100 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-06 18:21:10 +0100 |
commit | f676f388153fc9b5da0a76b2d5c2af9d8ffe832c (patch) | |
tree | f7e7b576cdd57bae600e2df276401f8b158c5b69 /spec/controllers/projects/clusters | |
parent | 2b4fccb7205101480bae2668e681cb3b58fface5 (diff) | |
download | gitlab-ce-f676f388153fc9b5da0a76b2d5c2af9d8ffe832c.tar.gz |
Add more tests to Projects::Clusters::ApplicationsController38464-k8s-apps
Diffstat (limited to 'spec/controllers/projects/clusters')
-rw-r--r-- | spec/controllers/projects/clusters/applications_controller_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/controllers/projects/clusters/applications_controller_spec.rb b/spec/controllers/projects/clusters/applications_controller_spec.rb index b8464b713c4..3213a797756 100644 --- a/spec/controllers/projects/clusters/applications_controller_spec.rb +++ b/spec/controllers/projects/clusters/applications_controller_spec.rb @@ -49,6 +49,19 @@ describe Projects::Clusters::ApplicationsController do expect(response).to have_http_status(:not_found) end end + + context 'when application is already installing' do + before do + other = current_application.new(cluster: cluster) + other.make_installing! + end + + it 'returns 400' do + go + + expect(response).to have_http_status(:bad_request) + end + end end describe 'security' do |