From ce7b05f41d3941552320c23dc06f9f2b076099ed Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Tue, 7 Nov 2017 19:17:20 +0900 Subject: [PATCH] Revert "Fix cluster_applications_helm factory as cluster always has been cerated" This reverts commit 36d69130a2337458a2fec94665d9369feb7a2f02. --- spec/factories/clusters/applications/helm.rb | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb index 83595468412..b63e26125d1 100644 --- a/spec/factories/clusters/applications/helm.rb +++ b/spec/factories/clusters/applications/helm.rb @@ -1,25 +1,30 @@ FactoryGirl.define do factory :cluster_applications_helm, class: Clusters::Applications::Helm do - cluster factory: :cluster, strategy: :provided_by_gcp + cluster factory: :cluster trait :installable do - status :installable + cluster + status 0 end trait :scheduled do - status :scheduled + cluster + status 1 end trait :installing do - status :installing + cluster + status 2 end trait :installed do - status :installed + cluster + status 3 end trait :errored do - status :errored + cluster + status(-1) status_reason 'something went wrong' end -- GitLab