Skip to content
Snippets Groups Projects
Unverified Commit 2dc2bad6 authored by James Lopez's avatar James Lopez
Browse files

refactor code based on feedback

parent e613d777
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,7 +22,7 @@ The `file=` parameter must point to a file on your filesystem and be preceded
by `@`. For example:
 
```console
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" -F "path=api-project" -F "file=@/path/to/file" https://gitlab.example.com/api/v4/projects/import
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --form "path=api-project" --form "file=@/path/to/file" https://gitlab.example.com/api/v4/projects/import
```
 
```json
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment