formats my test properly

This commit is contained in:
tiagonbotelho 2016-07-13 15:55:22 +01:00
parent 02e3846672
commit 228073986b
1 changed files with 2 additions and 1 deletions

View File

@ -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