Skip to content
Snippets Groups Projects
Commit 770d2831 authored by tiagonbotelho's avatar tiagonbotelho
Browse files

fixes test for simplified version of project

parent 3e44aac0
No related branches found
No related tags found
No related merge requests found
module FilterBranches
extend ActiveSupport::Concern
def filter_branches(branches)
if params[:search].present? && @sort
branches = @repository.find_similar_branches(params[:search], @sort)
end
end
Loading
@@ -83,7 +83,7 @@ describe API::API, api: true do
Loading
@@ -83,7 +83,7 @@ describe API::API, api: true do
   
context 'GET /projects?simple=true' do context 'GET /projects?simple=true' do
it 'should return a simplified version of all the projects' 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) get api('/projects?simple=true', user)
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment