Fix spinach tests

This commit is contained in:
Dmitriy Zaporozhets 2013-03-13 21:58:32 +02:00
parent 1587caa3e4
commit 496b7da7a0
3 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ class ProjectTeamManagement < Spinach::FeatureSteps
And 'I select "Mike" as "Reporter"' do
user = User.find_by_name("Mike")
within "#new_team_member" do
select user.name, :from => "user_ids"
select "#{user.name} (#{user.username})", :from => "user_ids"
select "Reporter", :from => "project_access"
end
click_button "Add users"