Commit 845f146518783e7122d5ff9c593ffe3c6a59cecf
Committed by
Dmitriy Zaporozhets
1 parent
6d1c566e
Exists in
master
and in
4 other branches
fix simples errors in tests
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
features/steps/admin/admin_teams.rb
| ... | ... | @@ -50,7 +50,7 @@ class AdminTeams < Spinach::FeatureSteps |
| 50 | 50 | When 'I select user "John" from user list as "Developer"' do |
| 51 | 51 | @user ||= User.find_by_name("John") |
| 52 | 52 | within "#team_members" do |
| 53 | - select user.name, :from => "user_ids" | |
| 53 | + select @user.name, :from => "user_ids" | |
| 54 | 54 | select "Developer", :from => "default_project_access" |
| 55 | 55 | end |
| 56 | 56 | end |
| ... | ... | @@ -61,7 +61,7 @@ class AdminTeams < Spinach::FeatureSteps |
| 61 | 61 | |
| 62 | 62 | Then 'I should see "John" in teams members list as "Developer"' do |
| 63 | 63 | @user ||= User.find_by_name("John") |
| 64 | - find_in_list("#members_list .member", user).must_equal true | |
| 64 | + find_in_list("#members_list .member", @user).must_equal true | |
| 65 | 65 | end |
| 66 | 66 | |
| 67 | 67 | When 'I visit "John" user admin page' do |
| ... | ... | @@ -185,7 +185,7 @@ class AdminTeams < Spinach::FeatureSteps |
| 185 | 185 | end |
| 186 | 186 | |
| 187 | 187 | Then 'I should be redirected to "HardCoders" team admin page' do |
| 188 | - current_path.should admin_team_peth(UserTeam.find_by_name("HardCoders")) | |
| 188 | + current_path.should == admin_team_path(UserTeam.find_by_name("HardCoders")) | |
| 189 | 189 | end |
| 190 | 190 | |
| 191 | 191 | And 'I should not to see "Jimm" user in members list' do | ... | ... |