summaryrefslogtreecommitdiff
path: root/spec/factories/ci/ref.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/ref.rb')
-rw-r--r--spec/factories/ci/ref.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/factories/ci/ref.rb b/spec/factories/ci/ref.rb
index 891d8848a72..bf6fa743743 100644
--- a/spec/factories/ci/ref.rb
+++ b/spec/factories/ci/ref.rb
@@ -2,15 +2,7 @@
FactoryBot.define do
factory :ci_ref, class: 'Ci::Ref' do
- ref { 'master' }
- status { :success }
- tag { false }
+ ref_path { 'refs/heads/master' }
project
-
- before(:create) do |ref, evaluator|
- next if ref.pipelines.exists?
-
- ref.update!(last_updated_by_pipeline: create(:ci_pipeline, project: evaluator.project, ref: evaluator.ref, tag: evaluator.tag, status: evaluator.status))
- end
end
end