From 5fb8b2f757e22437028436bb19af87d82c4f8c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Fri, 1 Dec 2017 16:27:53 +0100 Subject: Refactor disabled cluster testing to use trait --- spec/factories/clusters/cluster.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/factories/clusters') diff --git a/spec/factories/clusters/cluster.rb b/spec/factories/clusters/cluster.rb index c4261178f2d..e80ecbc63eb 100644 --- a/spec/factories/clusters/cluster.rb +++ b/spec/factories/clusters/cluster.rb @@ -35,5 +35,9 @@ FactoryGirl.define do create(:cluster_provider_gcp, :creating) end end + + trait :disabled do + enabled false + end end end -- cgit v1.2.1