Commit 00bfd00b authored by Allison Browne's avatar Allison Browne

Apply A-few-more-improvements patch

Perfomance and readability optimizations
parent d8d45553
...@@ -40,6 +40,10 @@ FactoryBot.define do ...@@ -40,6 +40,10 @@ FactoryBot.define do
end end
end end
trait :created do
status { :created }
end
factory :ci_pipeline do factory :ci_pipeline do
transient { ci_ref_presence { true } } transient { ci_ref_presence { true } }
...@@ -53,10 +57,6 @@ FactoryBot.define do ...@@ -53,10 +57,6 @@ FactoryBot.define do
failure_reason { :config_error } failure_reason { :config_error }
end end
trait :created do
status { :created }
end
trait :preparing do trait :preparing do
status { :preparing } status { :preparing }
end 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