summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-07 10:31:21 +0000
committerRémy Coutable <remy@rymai.me>2016-12-07 10:31:21 +0000
commit5186618bb0220383ae4668b7d023bfbbb52c8948 (patch)
tree50364478658b52192e16fabec2a7326c827b28e4 /spec/requests
parent9f8a389ac6c2065e8b4fdf174af18c93ba398d25 (diff)
parent4e249d5baea99a52915025fc2827d01ab2d77c18 (diff)
downloadgitlab-ce-5186618bb0220383ae4668b7d023bfbbb52c8948.tar.gz
Merge branch '25209-improve-length-validators' into 'master'
Use :maximum instead of :within for length validators with a 0..N range Closes #25209 See merge request !7894
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/deploy_keys_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/requests/api/deploy_keys_spec.rb b/spec/requests/api/deploy_keys_spec.rb
index 5fa7299044e..aabab8e6ae6 100644
--- a/spec/requests/api/deploy_keys_spec.rb
+++ b/spec/requests/api/deploy_keys_spec.rb
@@ -75,7 +75,6 @@ describe API::DeployKeys, api: true do
expect(response).to have_http_status(400)
expect(json_response['message']['key']).to eq([
'can\'t be blank',
- 'is too short (minimum is 0 characters)',
'is invalid'
])
end
@@ -85,8 +84,7 @@ describe API::DeployKeys, api: true do
expect(response).to have_http_status(400)
expect(json_response['message']['title']).to eq([
- 'can\'t be blank',
- 'is too short (minimum is 0 characters)'
+ 'can\'t be blank'
])
end