diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-20 11:46:15 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:24 +0400 |
commit | 845f146518783e7122d5ff9c593ffe3c6a59cecf (patch) | |
tree | d786967d9180e21067b2e25567bf9d9639b70cdf /features | |
parent | 6d1c566ec9f8506500f997c5ab33915e98826f3f (diff) |
fix simples errors in tests
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/admin/admin_teams.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/admin/admin_teams.rb b/features/steps/admin/admin_teams.rb index 7bb1dacabcb..bba60ec496b 100644 --- a/features/steps/admin/admin_teams.rb +++ b/features/steps/admin/admin_teams.rb @@ -50,7 +50,7 @@ class AdminTeams < Spinach::FeatureSteps When 'I select user "John" from user list as "Developer"' do @user ||= User.find_by_name("John") within "#team_members" do - select user.name, :from => "user_ids" + select @user.name, :from => "user_ids" select "Developer", :from => "default_project_access" end end @@ -61,7 +61,7 @@ class AdminTeams < Spinach::FeatureSteps Then 'I should see "John" in teams members list as "Developer"' do @user ||= User.find_by_name("John") - find_in_list("#members_list .member", user).must_equal true + find_in_list("#members_list .member", @user).must_equal true end When 'I visit "John" user admin page' do @@ -185,7 +185,7 @@ class AdminTeams < Spinach::FeatureSteps end Then 'I should be redirected to "HardCoders" team admin page' do - current_path.should admin_team_peth(UserTeam.find_by_name("HardCoders")) + current_path.should == admin_team_path(UserTeam.find_by_name("HardCoders")) end And 'I should not to see "Jimm" user in members list' do |