summaryrefslogtreecommitdiff
path: root/spec/factories/ci/builds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r--spec/factories/ci/builds.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index ccaf0dd997b..fb3c163dff1 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -29,6 +29,7 @@ FactoryBot.define do
end
pipeline factory: :ci_pipeline
+ project { pipeline.project }
trait :degenerated do
options { nil }
@@ -220,10 +221,6 @@ FactoryBot.define do
end
end
- after(:build) do |build, evaluator|
- build.project ||= build.pipeline.project
- end
-
trait :with_deployment do
after(:build) do |build, evaluator|
##