Commit a72d4491 authored by Timothy Andrew's avatar Timothy Andrew

Remove duplicate specs from `git_access_spec`

- Likely introduced during an improper conflict resolution.
parent 7b2ad2d5
...@@ -250,6 +250,9 @@ describe Gitlab::GitAccess, lib: true do ...@@ -250,6 +250,9 @@ describe Gitlab::GitAccess, lib: true do
state: 'locked', in_progress_merge_commit_sha: merge_into_protected_branch) state: 'locked', in_progress_merge_commit_sha: merge_into_protected_branch)
end end
run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: true }))
end
context "when the merge request is not in progress" do context "when the merge request is not in progress" do
before do before do
create(:merge_request, source_project: project, source_branch: unprotected_branch, target_branch: 'feature', in_progress_merge_commit_sha: nil) create(:merge_request, source_project: project, source_branch: unprotected_branch, target_branch: 'feature', in_progress_merge_commit_sha: nil)
...@@ -257,16 +260,11 @@ describe Gitlab::GitAccess, lib: true do ...@@ -257,16 +260,11 @@ describe Gitlab::GitAccess, lib: true do
run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: false })) run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: false }))
end end
end
context "when a merge request does not exist for the given source/target branch" do context "when a merge request does not exist for the given source/target branch" do
run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: false })) run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: false }))
end end
end end
context "when a merge request does not exist for the given source/target branch" do
run_permission_checks(permissions_matrix.deep_merge(developer: { merge_into_protected_branch: false }))
end
end end
context "when developers are allowed to push and merge into the #{protected_branch_type} protected branch" do context "when developers are allowed to push and merge into the #{protected_branch_type} protected branch" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment