diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-13 15:55:22 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-13 15:55:22 +0100 |
commit | 228073986bfb900ef324379639e1c5cce6b74fe6 (patch) | |
tree | 36c841f3d27b398faf9fb003fdfdbf6c64cec75a | |
parent | 02e38466726730edd212411214a92319fe31df60 (diff) | |
download | gitlab-ce-228073986bfb900ef324379639e1c5cce6b74fe6.tar.gz |
formats my test properly
-rw-r--r-- | spec/requests/api/projects_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index 4ddab08ef14..152cd802839 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -82,10 +82,11 @@ describe API::API, api: true do end context 'GET /projects?simple=true' do - it 'should return a simplified version of all the projects' do + it 'returns a simplified version of all the projects' do expected_keys = ["id", "http_url_to_repo", "web_url", "name", "name_with_namespace", "path", "path_with_namespace"] get api('/projects?simple=true', user) + expect(response).to have_http_status(200) expect(json_response).to be_an Array expect(json_response.first.keys).to match_array expected_keys |