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/services/branches/create_service_spec.rb')
-rw-r--r--spec/services/branches/create_service_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/services/branches/create_service_spec.rb b/spec/services/branches/create_service_spec.rb
index 26cc1a0665e..19a32aafa38 100644
--- a/spec/services/branches/create_service_spec.rb
+++ b/spec/services/branches/create_service_spec.rb
@@ -56,17 +56,6 @@ RSpec.describe Branches::CreateService, :use_clean_rails_redis_caching do
end
end
- context 'when an ambiguous branch name is provided' do
- let(:branches) { { 'ambiguous/test' => 'master', 'ambiguous' => 'master' } }
-
- it 'returns an error that branch could not be created' do
- err_msg = 'Failed to create branch \'ambiguous\': 13:reference is ambiguous.'
-
- expect(subject[:status]).to eq(:error)
- expect(subject[:message]).to match_array([err_msg])
- end
- end
-
context 'when PreReceiveError exception' do
let(:branches) { { 'error' => 'master' } }
@@ -184,18 +173,6 @@ RSpec.describe Branches::CreateService, :use_clean_rails_redis_caching do
end
end
- context 'when an ambiguous branch name is provided' do
- it 'returns an error that branch could not be created' do
- err_msg = 'Failed to create branch \'feature\': 13:reference is ambiguous.'
-
- service.execute('feature/widget', 'master')
- result = service.execute('feature', 'master')
-
- expect(result[:status]).to eq(:error)
- expect(result[:message]).to eq(err_msg)
- end
- end
-
it 'logs and returns an error if there is a PreReceiveError exception' do
error_message = 'pre receive error'
raw_message = "GitLab: #{error_message}"