diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-02 16:47:15 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-11 16:47:33 -0400 |
commit | 29cbb2f0782a97c793bf8fdada4162ac47ad0ca6 (patch) | |
tree | 947969e75bcf9be27cfa9dc6efb0cc5d054bbec9 | |
parent | b93053695a94822801a87ff2b1850999130842c1 (diff) | |
download | gitlab-ce-fix-api-project-transfer.tar.gz |
Update specs.fix-api-project-transfer
-rw-r--r-- | spec/services/projects/transfer_service_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/services/projects/transfer_service_spec.rb b/spec/services/projects/transfer_service_spec.rb index 79acba78bda..bb7da33b12e 100644 --- a/spec/services/projects/transfer_service_spec.rb +++ b/spec/services/projects/transfer_service_spec.rb @@ -8,7 +8,7 @@ describe Projects::TransferService do context 'namespace -> namespace' do before do group.add_owner(user) - @result = transfer_project(project, user, new_namespace_id: group.id) + @result = transfer_project(project, user, group) end it { expect(@result).to be_truthy } @@ -17,7 +17,7 @@ describe Projects::TransferService do context 'namespace -> no namespace' do before do - @result = transfer_project(project, user, new_namespace_id: nil) + @result = transfer_project(project, user, nil) end it { expect(@result).to eq false } @@ -26,14 +26,14 @@ describe Projects::TransferService do context 'namespace -> not allowed namespace' do before do - @result = transfer_project(project, user, new_namespace_id: group.id) + @result = transfer_project(project, user, group) end it { expect(@result).to eq false } it { expect(project.namespace).to eq(user.namespace) } end - def transfer_project(project, user, params) - Projects::TransferService.new(project, user, params).execute + def transfer_project(project, user, new_namespace) + Projects::TransferService.new(project, user).execute(new_namespace) end end |