Backport cluster factory changes from EE

This commit is contained in:
Matija Čupić 2018-05-13 12:36:51 +02:00
parent 40683268b2
commit c2cf618036
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -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