diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 12:43:02 +0000 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 13:47:03 +0000 |
commit | 96106287db2b6403809b238689afb592da5e2abf (patch) | |
tree | 3e7164ff2582b258c6fc175df8a16c55c2388643 /spec/support/shared_examples/features | |
parent | d6dd9d712ac24a095d0b0506731f9415b7c3b5f5 (diff) | |
download | gitlab-ce-96106287db2b6403809b238689afb592da5e2abf.tar.gz |
Deduplicate protected ref human_access_levelsjej/fix-protected-branch-validations-ce
Previously these were duplicated so they could be different for push/merge,
but this was no longer necessary after
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11232
Diffstat (limited to 'spec/support/shared_examples/features')
-rw-r--r-- | spec/support/shared_examples/features/protected_branches_access_control_ce.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/features/protected_branches_access_control_ce.rb b/spec/support/shared_examples/features/protected_branches_access_control_ce.rb index 5fde91512da..17f319f49e9 100644 --- a/spec/support/shared_examples/features/protected_branches_access_control_ce.rb +++ b/spec/support/shared_examples/features/protected_branches_access_control_ce.rb @@ -1,5 +1,5 @@ shared_examples "protected branches > access control > CE" do - ProtectedBranch::PushAccessLevel.human_access_levels.each do |(access_type_id, access_type_name)| + ProtectedRefAccess::HUMAN_ACCESS_LEVELS.each do |(access_type_id, access_type_name)| it "allows creating protected branches that #{access_type_name} can push to" do visit project_protected_branches_path(project) @@ -44,7 +44,7 @@ shared_examples "protected branches > access control > CE" do end end - ProtectedBranch::MergeAccessLevel.human_access_levels.each do |(access_type_id, access_type_name)| + ProtectedRefAccess::HUMAN_ACCESS_LEVELS.each do |(access_type_id, access_type_name)| it "allows creating protected branches that #{access_type_name} can merge to" do visit project_protected_branches_path(project) |