Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/external_pull_requests.rb')
-rw-r--r--spec/factories/ci/external_pull_requests.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/factories/ci/external_pull_requests.rb b/spec/factories/ci/external_pull_requests.rb
new file mode 100644
index 00000000000..9a16e400101
--- /dev/null
+++ b/spec/factories/ci/external_pull_requests.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :external_pull_request, class: 'Ci::ExternalPullRequest' do
+ sequence(:pull_request_iid)
+ project
+ source_branch { 'feature' }
+ source_repository { 'the-repository' }
+ source_sha { '97de212e80737a608d939f648d959671fb0a0142' }
+ target_branch { 'master' }
+ target_repository { 'the-repository' }
+ target_sha { 'a09386439ca39abe575675ffd4b89ae824fec22f' }
+ status { :open }
+
+ trait(:closed) { status { 'closed' } }
+ end
+end