diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index 19aba0f..ce67587 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -81,8 +81,8 @@ module TabHelper end def branches_tab_class - if current_page?(branches_project_repository_path(@project)) || - current_controller?(:protected_branches) || + if current_controller?(:protected_branches) || + current_controller?(:branches) || current_page?(project_repository_path(@project)) 'active' end diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index 6853e8d..e63855e 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -189,7 +189,7 @@ module SharedPaths end step 'I visit project branches page' do - visit branches_project_repository_path(@project) + visit project_branches_path(@project) end step 'I visit compare refs page' do diff --git a/spec/features/gitlab_flavored_markdown_spec.rb b/spec/features/gitlab_flavored_markdown_spec.rb index 53d3176..e67df7c 100644 --- a/spec/features/gitlab_flavored_markdown_spec.rb +++ b/spec/features/gitlab_flavored_markdown_spec.rb @@ -41,7 +41,7 @@ describe "GitLab Flavored Markdown" do end it "should render title in repositories#branches" do - visit branches_project_repository_path(project) + visit project_branches_path(project) page.should have_link("##{issue.id}") end diff --git a/spec/features/security/project_access_spec.rb b/spec/features/security/project_access_spec.rb index 8c65af0..8a1d207 100644 --- a/spec/features/security/project_access_spec.rb +++ b/spec/features/security/project_access_spec.rb @@ -187,7 +187,7 @@ describe "Application access" do end describe "GET /project_code/repository/branches" do - subject { branches_project_repository_path(project) } + subject { project_branches_path(project) } before do # Speed increase @@ -429,7 +429,7 @@ describe "Application access" do end describe "GET /project_code/repository/branches" do - subject { branches_project_repository_path(project) } + subject { project_branches_path(project) } before do # Speed increase -- libgit2 0.21.2