Commit d207a31fc97edf4e19a50c4a650d6a34b4f5a2cf
1 parent
7a167cf1
Exists in
master
and in
4 other branches
Fix tests and tab highlight
Showing
4 changed files
with
6 additions
and
6 deletions
Show diff stats
app/helpers/tab_helper.rb
... | ... | @@ -81,8 +81,8 @@ module TabHelper |
81 | 81 | end |
82 | 82 | |
83 | 83 | def branches_tab_class |
84 | - if current_page?(branches_project_repository_path(@project)) || | |
85 | - current_controller?(:protected_branches) || | |
84 | + if current_controller?(:protected_branches) || | |
85 | + current_controller?(:branches) || | |
86 | 86 | current_page?(project_repository_path(@project)) |
87 | 87 | 'active' |
88 | 88 | end | ... | ... |
features/steps/shared/paths.rb
spec/features/gitlab_flavored_markdown_spec.rb
... | ... | @@ -41,7 +41,7 @@ describe "GitLab Flavored Markdown" do |
41 | 41 | end |
42 | 42 | |
43 | 43 | it "should render title in repositories#branches" do |
44 | - visit branches_project_repository_path(project) | |
44 | + visit project_branches_path(project) | |
45 | 45 | |
46 | 46 | page.should have_link("##{issue.id}") |
47 | 47 | end | ... | ... |
spec/features/security/project_access_spec.rb
... | ... | @@ -187,7 +187,7 @@ describe "Application access" do |
187 | 187 | end |
188 | 188 | |
189 | 189 | describe "GET /project_code/repository/branches" do |
190 | - subject { branches_project_repository_path(project) } | |
190 | + subject { project_branches_path(project) } | |
191 | 191 | |
192 | 192 | before do |
193 | 193 | # Speed increase |
... | ... | @@ -429,7 +429,7 @@ describe "Application access" do |
429 | 429 | end |
430 | 430 | |
431 | 431 | describe "GET /project_code/repository/branches" do |
432 | - subject { branches_project_repository_path(project) } | |
432 | + subject { project_branches_path(project) } | |
433 | 433 | |
434 | 434 | before do |
435 | 435 | # Speed increase | ... | ... |