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/lib/gitlab/git_access_snippet_spec.rb')
-rw-r--r--spec/lib/gitlab/git_access_snippet_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/lib/gitlab/git_access_snippet_spec.rb b/spec/lib/gitlab/git_access_snippet_spec.rb
index d690a4b2db4..b6a61de87a6 100644
--- a/spec/lib/gitlab/git_access_snippet_spec.rb
+++ b/spec/lib/gitlab/git_access_snippet_spec.rb
@@ -397,38 +397,6 @@ RSpec.describe Gitlab::GitAccessSnippet do
end
end
- describe 'HEAD realignment' do
- let_it_be(:snippet) { create(:project_snippet, :private, :repository, project: project) }
-
- shared_examples 'HEAD is updated to the snippet default branch' do
- let(:actor) { snippet.author }
-
- specify do
- expect(snippet).to receive(:change_head_to_default_branch).and_call_original
-
- subject
- end
-
- context 'when an error is raised' do
- let(:actor) { nil }
-
- it 'does not realign HEAD' do
- expect(snippet).not_to receive(:change_head_to_default_branch).and_call_original
-
- expect { subject }.to raise_error(described_class::ForbiddenError)
- end
- end
- end
-
- it_behaves_like 'HEAD is updated to the snippet default branch' do
- subject { push_access_check }
- end
-
- it_behaves_like 'HEAD is updated to the snippet default branch' do
- subject { pull_access_check }
- end
- end
-
private
def raise_not_found(message_key)