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:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-05-09 18:09:20 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2017-05-22 20:55:01 +0300
commit42604d4c33e6098ba696d464c9a7b3d16656bf54 (patch)
tree49ce5e49ff2778ed6b996cdadf1f19d98b288782 /spec/services/projects/transfer_service_spec.rb
parent18a6d9c5326bc2b90a1f0cc8664d638a39885924 (diff)
Prevent project transfer if a new group is not selected
Diffstat (limited to 'spec/services/projects/transfer_service_spec.rb')
-rw-r--r--spec/services/projects/transfer_service_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/services/projects/transfer_service_spec.rb b/spec/services/projects/transfer_service_spec.rb
index 29ccce59c53..5c872047bdf 100644
--- a/spec/services/projects/transfer_service_spec.rb
+++ b/spec/services/projects/transfer_service_spec.rb
@@ -26,6 +26,7 @@ describe Projects::TransferService, services: true do
it { expect(@result).to eq false }
it { expect(project.namespace).to eq(user.namespace) }
+ it { expect(project.errors.messages[:new_namespace][0]).to eq 'Please select a namespace to transfer the project to' }
end
context 'disallow transfering of project with tags' do