diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 19:42:58 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-07 19:42:58 +0300 |
commit | a194d3125956a854792902797ab5124d659b4caa (patch) | |
tree | 93177e3329415772c2b26f5d4a5300584e3d2e25 /spec | |
parent | 02878cd958557128cd9c22b27bd2fb97a843266b (diff) |
Fix Projects::Clusters::ApplicationsController failures
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/clusters/applications_controller_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/controllers/projects/clusters/applications_controller_spec.rb b/spec/controllers/projects/clusters/applications_controller_spec.rb index 3213a797756..8b460646059 100644 --- a/spec/controllers/projects/clusters/applications_controller_spec.rb +++ b/spec/controllers/projects/clusters/applications_controller_spec.rb @@ -8,7 +8,7 @@ describe Projects::Clusters::ApplicationsController do end describe 'POST create' do - let(:cluster) { create(:cluster, :project, :providing_by_gcp) } + let(:cluster) { create(:cluster, :project, :provided_by_gcp) } let(:project) { cluster.project } let(:application) { 'helm' } let(:params) { { application: application, id: cluster.id } } @@ -52,8 +52,7 @@ describe Projects::Clusters::ApplicationsController do context 'when application is already installing' do before do - other = current_application.new(cluster: cluster) - other.make_installing! + create(:cluster_applications_helm, :installing, cluster: cluster) end it 'returns 400' do |