Commit 22807398 authored by tiagonbotelho's avatar tiagonbotelho

formats my test properly

parent 02e38466
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment