Commit 770d2831 authored by tiagonbotelho's avatar tiagonbotelho

fixes test for simplified version of project

parent 3e44aac0
module FilterBranches
extend ActiveSupport::Concern
def filter_branches(branches)
if params[:search].present? && @sort
branches = @repository.find_similar_branches(params[:search], @sort)
end
end
......@@ -83,7 +83,7 @@ describe API::API, api: true do
context 'GET /projects?simple=true' do
it 'should return 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", "permissions"]
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)
......
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