Fix wrong error message expectation in API::Commits spec

This was because the MR was a bit behind master and the error message
got updated in the meantime by 79aad815.

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-12-14 09:26:19 +01:00
parent 3e8118d689
commit de038bf755
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -475,7 +475,7 @@ describe API::Commits, api: true do
expect(response).to have_http_status(400) expect(response).to have_http_status(400)
expect(json_response['message']).to eq('Sorry, we cannot cherry-pick this commit automatically. expect(json_response['message']).to eq('Sorry, we cannot cherry-pick this commit automatically.
It may have already been cherry-pick, or a more recent commit may have updated some of its content.') A cherry-pick may have already been performed with this commit, or a more recent commit may have updated some of its content.')
end end
it 'returns 400 if you are not allowed to push to the target branch' do it 'returns 400 if you are not allowed to push to the target branch' do