Commit b89d8497f6bf911a74c350dfce6256c2a08ef59b
1 parent
91c7b266
Exists in
spb-stable
and in
3 other branches
Updated convience method to private
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/controllers/search_controller.rb
... | ... | @@ -15,6 +15,8 @@ class SearchController < ApplicationController |
15 | 15 | @total_results = @projects.count + @merge_requests.count + @issues.count + @wiki_pages.count + @blobs.total_count |
16 | 16 | end |
17 | 17 | |
18 | + private | |
19 | + | |
18 | 20 | def find_project_ids(group_id, project_id) |
19 | 21 | project_ids = current_user.authorized_projects.map(&:id) |
20 | 22 | ... | ... |
spec/controllers/search_controller_spec.rb
... | ... | @@ -10,7 +10,7 @@ describe SearchController do |
10 | 10 | |
11 | 11 | describe '#find_project_ids' do |
12 | 12 | it 'should include public projects ids when searching within a single project' do |
13 | - project_ids = controller.find_project_ids(nil, project.id) | |
13 | + project_ids = controller.send(:find_project_ids,nil, project.id) | |
14 | 14 | project_ids.size.should == 1 |
15 | 15 | project_ids[0].should == project.id |
16 | 16 | end | ... | ... |