2016-12-22 12:31:12 +00:00
|
|
|
shared_examples 'creating an issue resolving discussions through the API' do
|
|
|
|
it 'creates a new project issue' do
|
2017-10-19 18:28:19 +00:00
|
|
|
expect(response).to have_gitlab_http_status(:created)
|
2016-12-22 12:31:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'resolves the discussions in a merge request' do
|
|
|
|
discussion.first_note.reload
|
|
|
|
|
|
|
|
expect(discussion.resolved?).to be(true)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'assigns a description to the issue mentioning the merge request' do
|
|
|
|
expect(json_response['description']).to include(merge_request.to_reference)
|
|
|
|
end
|
|
|
|
end
|