diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-05-13 12:36:51 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-05-13 12:36:51 +0200 |
commit | c2cf618036597bf9aff8ffe5e9ee97aed2aa660a (patch) | |
tree | 8da86219cb29034201e025a94c95d55bb078965b | |
parent | 40683268b2b5ad807194387d8345a30195e178c4 (diff) | |
download | gitlab-ce-c2cf618036597bf9aff8ffe5e9ee97aed2aa660a.tar.gz |
Backport cluster factory changes from EE
-rw-r--r-- | spec/factories/clusters/clusters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/clusters/clusters.rb b/spec/factories/clusters/clusters.rb index 98566f907f9..0430762c1ff 100644 --- a/spec/factories/clusters/clusters.rb +++ b/spec/factories/clusters/clusters.rb @@ -4,8 +4,8 @@ FactoryBot.define do name 'test-cluster' trait :project do - after(:create) do |cluster, evaluator| - cluster.projects << create(:project) + before(:create) do |cluster, evaluator| + cluster.projects << create(:project, :repository) end end |