Commit 2dc2bad6 authored by James Lopez's avatar James Lopez

refactor code based on feedback

parent e613d777
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment