From 6f4576b7436ff4573b28ab8305796e96bb2aed29 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 24 Oct 2012 15:23:04 +0300 Subject: Spinach feature --- features/steps/project/project_team_management.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'features/steps') diff --git a/features/steps/project/project_team_management.rb b/features/steps/project/project_team_management.rb index 7beca257e36..5c3a9b31129 100644 --- a/features/steps/project/project_team_management.rb +++ b/features/steps/project/project_team_management.rb @@ -86,4 +86,24 @@ class ProjectTeamManagement < Spinach::FeatureSteps project = Project.find_by_name("Shop") project.add_access(user, :write) end + + Given 'I own project "Website"' do + @project = Factory :project, :name => "Website" + @project.add_access(@user, :admin) + end + + And '"Mike" is "Website" reporter' do + user = User.find_by_name("Mike") + project = Project.find_by_name("Website") + project.add_access(user, :read) + end + + And 'I click link "Import team from another project"' do + click_link "Import team from another project" + end + + When 'I submit "Website" project for import team' do + select 'Website', from: 'source_project_id' + click_button 'Import' + end end -- cgit v1.2.1