diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-03-14 17:17:35 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-03-16 16:56:11 +0300 |
commit | 5248e37f27fe7afaec40b61041e9fa9fe70b2952 (patch) | |
tree | fe0edd37357f2a110bac4bf0fd6adc2255cbb998 /spec/requests/api/project_export_spec.rb | |
parent | a63d74709be2af852e3c98505a18664e6bca9754 (diff) |
Adds the option to override project description on export via API
and fixes the project description not being imported
Diffstat (limited to 'spec/requests/api/project_export_spec.rb')
-rw-r--r-- | spec/requests/api/project_export_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/requests/api/project_export_spec.rb b/spec/requests/api/project_export_spec.rb index fbed527963f..12583109b59 100644 --- a/spec/requests/api/project_export_spec.rb +++ b/spec/requests/api/project_export_spec.rb @@ -285,6 +285,17 @@ describe API::ProjectExport do context 'when user is not a member' do it_behaves_like 'post project export start not found' end + + context 'when overriding description' do + it 'starts' do + params = { description: "Foo" } + + expect_any_instance_of(Projects::ImportExport::ExportService).to receive(:execute) + post api(path, project.owner), params + + expect(response).to have_gitlab_http_status(202) + end + end end end end |