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/user_access_spec.rb')
-rw-r--r--spec/lib/gitlab/user_access_spec.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/lib/gitlab/user_access_spec.rb b/spec/lib/gitlab/user_access_spec.rb
index 01890305df4..b1de3e21b77 100644
--- a/spec/lib/gitlab/user_access_spec.rb
+++ b/spec/lib/gitlab/user_access_spec.rb
@@ -30,17 +30,6 @@ RSpec.describe Gitlab::UserAccess do
end
end
- describe 'push to branch in an internal project' do
- it 'will not infinitely loop when a project is internal' do
- project.visibility_level = Gitlab::VisibilityLevel::INTERNAL
- project.save!
-
- expect(project).not_to receive(:branch_allows_collaboration?)
-
- access.can_push_to_branch?('master')
- end
- end
-
describe 'push to empty project' do
let(:empty_project) { create(:project_empty_repo) }
let(:project_access) { described_class.new(user, container: empty_project) }