Commit b89d8497 authored by Izaak Alpert's avatar Izaak Alpert

Updated convience method to private

parent 91c7b266
......@@ -15,6 +15,8 @@ class SearchController < ApplicationController
@total_results = @projects.count + @merge_requests.count + @issues.count + @wiki_pages.count + @blobs.total_count
end
private
def find_project_ids(group_id, project_id)
project_ids = current_user.authorized_projects.map(&:id)
......
......@@ -10,7 +10,7 @@ describe SearchController do
describe '#find_project_ids' do
it 'should include public projects ids when searching within a single project' do
project_ids = controller.find_project_ids(nil, project.id)
project_ids = controller.send(:find_project_ids,nil, project.id)
project_ids.size.should == 1
project_ids[0].should == project.id
end
......
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