summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-20 14:24:09 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-20 14:24:09 +0100
commit612e61f4c4c374f4a47ea6d8a3b71fd40c41ac19 (patch)
treef98f24a8d838fde4c471f75e301e2c48a0b44d23 /spec
parentc89449e6110c2bdf6e1410bae3e7b7d807c5e305 (diff)
downloadgitlab-ce-612e61f4c4c374f4a47ea6d8a3b71fd40c41ac19.tar.gz
Use grape validation for datesapi-grape-datetime
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/commits_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb
index 9fa007332f0..ecc6a597869 100644
--- a/spec/requests/api/commits_spec.rb
+++ b/spec/requests/api/commits_spec.rb
@@ -72,7 +72,7 @@ describe API::Commits, api: true do
get api("/projects/#{project.id}/repository/commits?since=invalid-date", user)
expect(response).to have_http_status(400)
- expect(json_response['message']).to include "\"since\" must be a timestamp in ISO 8601 format"
+ expect(json_response['error']).to eq('since is invalid')
end
end