Commit e1f40f40 authored by Felipe Artur's avatar Felipe Artur

fix spec/requests/api/merge_requests_spec.rb

parent 7482aef1
...@@ -336,19 +336,14 @@ describe API::MergeRequests do ...@@ -336,19 +336,14 @@ describe API::MergeRequests do
author: user, author: user,
labels: 'label, label2', labels: 'label, label2',
milestone_id: milestone.id, milestone_id: milestone.id,
remove_source_branch: true,
squash: true squash: true
expect(response).to have_http_status(201) expect(response).to have_http_status(201)
expect(json_response['title']).to eq('Test merge_request') expect(json_response['title']).to eq('Test merge_request')
expect(json_response['labels']).to eq(%w(label label2)) expect(json_response['labels']).to eq(%w(label label2))
expect(json_response['milestone']['id']).to eq(milestone.id) expect(json_response['milestone']['id']).to eq(milestone.id)
<<<<<<< HEAD
expect(json_response['force_remove_source_branch']).to be_truthy
expect(json_response['squash']).to be_truthy expect(json_response['squash']).to be_truthy
=======
expect(json_response['force_remove_source_branch']).to be_falsy expect(json_response['force_remove_source_branch']).to be_falsy
>>>>>>> bf57a7e80c44080dc7ec0fd774148afdae29cc31
end end
it "returns 422 when source_branch equals target_branch" do it "returns 422 when source_branch equals target_branch" do
......
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