Commit 7dc3d257 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Bryce Johnson

approve -> approvals

parent 51e6ec6e
...@@ -738,7 +738,7 @@ describe API::MergeRequests, api: true do ...@@ -738,7 +738,7 @@ describe API::MergeRequests, api: true do
before { project.update_attribute(:approvals_before_merge, 2) } before { project.update_attribute(:approvals_before_merge, 2) }
context 'as the author of the merge request' do context 'as the author of the merge request' do
before { post api("/projects/#{project.id}/merge_requests/#{merge_request.id}/approve", user) } before { post api("/projects/#{project.id}/merge_requests/#{merge_request.id}/approvals", user) }
it 'returns a 401' do it 'returns a 401' do
expect(response).to have_http_status(401) expect(response).to have_http_status(401)
......
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