diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 14:24:09 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 14:24:09 +0100 |
commit | 612e61f4c4c374f4a47ea6d8a3b71fd40c41ac19 (patch) | |
tree | f98f24a8d838fde4c471f75e301e2c48a0b44d23 /spec | |
parent | c89449e6110c2bdf6e1410bae3e7b7d807c5e305 (diff) | |
download | gitlab-ce-612e61f4c4c374f4a47ea6d8a3b71fd40c41ac19.tar.gz |
Use grape validation for datesapi-grape-datetime
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/commits_spec.rb | 2 |
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 |