From 0a3d50eb32faef18a3bb8bc7626303cdcc50ac3b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 6 Feb 2014 16:17:33 +0200 Subject: [PATCH] Fixed tests --- app/views/projects/_settings_nav.html.haml | 2 +- features/steps/project/project_active_tab.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/projects/_settings_nav.html.haml b/app/views/projects/_settings_nav.html.haml index a0caf82..4c7b088 100644 --- a/app/views/projects/_settings_nav.html.haml +++ b/app/views/projects/_settings_nav.html.haml @@ -1,4 +1,4 @@ -%ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20 +%ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20.project-settings-nav = nav_link(path: 'projects#edit') do = link_to edit_project_path(@project), class: "stat-tab tab " do %i.icon-edit diff --git a/features/steps/project/project_active_tab.rb b/features/steps/project/project_active_tab.rb index e04a171..dcc252f 100644 --- a/features/steps/project/project_active_tab.rb +++ b/features/steps/project/project_active_tab.rb @@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps end Given 'I click the "Edit" tab' do - click_link('Edit') + within '.project-settings-nav' do + click_link('Project') + end end Given 'I click the "Hooks" tab' do @@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps end Then 'the active sub nav should be Edit' do - ensure_active_sub_nav('Edit Project') + ensure_active_sub_nav('Project') end Then 'the active sub nav should be Hooks' do -- libgit2 0.21.2