summaryrefslogtreecommitdiff
path: root/spec/requests/api
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-14 14:55:11 +0100
committerJames Lopez <james@jameslopez.es>2018-02-14 14:55:11 +0100
commit2dc2bad6233e1e74c74c49af4be838e0a39dcd53 (patch)
treee08d0bcbd96524cce38a67e10bea71708ea75359 /spec/requests/api
parente613d777b258a4f7070d2b7aaee093901e4b7ed7 (diff)
downloadgitlab-ce-2dc2bad6233e1e74c74c49af4be838e0a39dcd53.tar.gz
refactor code based on feedback
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/project_import_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/project_import_spec.rb b/spec/requests/api/project_import_spec.rb
index 2fb103c6510..eabf9095c13 100644
--- a/spec/requests/api/project_import_spec.rb
+++ b/spec/requests/api/project_import_spec.rb
@@ -17,7 +17,7 @@ describe API::ProjectImport do
describe 'POST /projects/import' do
it 'schedules an import using a namespace' do
- stub_import(user.namespace)
+ stub_import(namespace)
post api('/projects/import', user), path: 'test-import', file: fixture_file_upload(file), namespace: namespace.id
@@ -25,7 +25,7 @@ describe API::ProjectImport do
end
it 'schedules an import using the namespace path' do
- stub_import(unamespace)
+ stub_import(namespace)
post api('/projects/import', user), path: 'test-import', file: fixture_file_upload(file), namespace: namespace.full_path