Commit d207a31f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests and tab highlight

parent 7a167cf1
...@@ -81,8 +81,8 @@ module TabHelper ...@@ -81,8 +81,8 @@ module TabHelper
end end
def branches_tab_class def branches_tab_class
if current_page?(branches_project_repository_path(@project)) || if current_controller?(:protected_branches) ||
current_controller?(:protected_branches) || current_controller?(:branches) ||
current_page?(project_repository_path(@project)) current_page?(project_repository_path(@project))
'active' 'active'
end end
......
...@@ -189,7 +189,7 @@ module SharedPaths ...@@ -189,7 +189,7 @@ module SharedPaths
end end
step 'I visit project branches page' do step 'I visit project branches page' do
visit branches_project_repository_path(@project) visit project_branches_path(@project)
end end
step 'I visit compare refs page' do step 'I visit compare refs page' do
......
...@@ -41,7 +41,7 @@ describe "GitLab Flavored Markdown" do ...@@ -41,7 +41,7 @@ describe "GitLab Flavored Markdown" do
end end
it "should render title in repositories#branches" do 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}") page.should have_link("##{issue.id}")
end end
......
...@@ -187,7 +187,7 @@ describe "Application access" do ...@@ -187,7 +187,7 @@ describe "Application access" do
end end
describe "GET /project_code/repository/branches" do describe "GET /project_code/repository/branches" do
subject { branches_project_repository_path(project) } subject { project_branches_path(project) }
before do before do
# Speed increase # Speed increase
...@@ -429,7 +429,7 @@ describe "Application access" do ...@@ -429,7 +429,7 @@ describe "Application access" do
end end
describe "GET /project_code/repository/branches" do describe "GET /project_code/repository/branches" do
subject { branches_project_repository_path(project) } subject { project_branches_path(project) }
before do before do
# Speed increase # Speed increase
......
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