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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-13 03:10:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-13 03:10:06 +0300
commit3827baae078970c1027461f01df090b885370c55 (patch)
tree65a0471270565047d0cb18de33a989f297fbde18 /spec/factories/protected_branches
parent14245e7755fb19d2429aa6a85273097a6b2eb43f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/protected_branches')
-rw-r--r--spec/factories/protected_branches/merge_access_levels.rb8
-rw-r--r--spec/factories/protected_branches/push_access_levels.rb8
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/factories/protected_branches/merge_access_levels.rb b/spec/factories/protected_branches/merge_access_levels.rb
new file mode 100644
index 00000000000..779a8617de1
--- /dev/null
+++ b/spec/factories/protected_branches/merge_access_levels.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :protected_branch_merge_access_level, class: 'ProtectedBranch::MergeAccessLevel' do
+ protected_branch
+ access_level { Gitlab::Access::DEVELOPER }
+ end
+end
diff --git a/spec/factories/protected_branches/push_access_levels.rb b/spec/factories/protected_branches/push_access_levels.rb
new file mode 100644
index 00000000000..fa3a35fe282
--- /dev/null
+++ b/spec/factories/protected_branches/push_access_levels.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :protected_branch_push_access_level, class: 'ProtectedBranch::PushAccessLevel' do
+ protected_branch
+ access_level { Gitlab::Access::DEVELOPER }
+ end
+end