Change spinach tab tests to fit new tabs navigation

This commit is contained in:
Dmitriy Zaporozhets 2013-03-14 21:51:44 +02:00
parent 38ecec4472
commit 753ecbdcec
3 changed files with 38 additions and 29 deletions

View file

@ -10,6 +10,10 @@ class ProjectActiveTab < Spinach::FeatureSteps
ensure_active_main_tab('Home')
end
Then 'the active main tab should be Settings' do
ensure_active_main_tab('Settings')
end
Then 'the active main tab should be Files' do
ensure_active_main_tab('Files')
end

View file

@ -125,6 +125,10 @@ module SharedPaths
visit project_path(@project)
end
Given "I visit my project's settings page" do
visit edit_project_path(@project)
end
Given "I visit my project's files page" do
visit project_tree_path(@project, root_ref)
end