summaryrefslogtreecommitdiff
path: root/spec/factories/protected_branches/push_access_levels.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/protected_branches/push_access_levels.rb')
-rw-r--r--spec/factories/protected_branches/push_access_levels.rb8
1 files changed, 8 insertions, 0 deletions
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