Commit 80c689b2 authored by Arturo Herrero's avatar Arturo Herrero

Merge branch 'pipeline-spec-improvements' into 'master'

Speed up pipeline model specs

See merge request gitlab-org/gitlab!53770
parents b899bbd6 6c5c698f
......@@ -40,6 +40,10 @@ FactoryBot.define do
end
end
trait :created do
status { :created }
end
factory :ci_pipeline do
transient { ci_ref_presence { true } }
......@@ -53,10 +57,6 @@ FactoryBot.define do
failure_reason { :config_error }
end
trait :created do
status { :created }
end
trait :preparing do
status { :preparing }
end
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment