Commit a194d312 authored by Alessio Caiazza's avatar Alessio Caiazza

Fix Projects::Clusters::ApplicationsController failures

parent 02878cd9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment