Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issues_resolving_discussions_shared_examples.rb « api « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d26d279363c12781008ceebf1ffbe226bbabc7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
shared_examples 'creating an issue resolving discussions through the API' do
  it 'creates a new project issue' do
    expect(response).to have_http_status(:created)
  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