diff options
Diffstat (limited to 'features/steps/admin/groups.rb')
| -rw-r--r-- | features/steps/admin/groups.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/admin/groups.rb b/features/steps/admin/groups.rb index 721460b9371..743c3ecce87 100644 --- a/features/steps/admin/groups.rb +++ b/features/steps/admin/groups.rb @@ -28,12 +28,12 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps end step 'I should see newly created group' do - page.should have_content "Group: gitlab" - page.should have_content "Group description" + expect(page).to have_content "Group: gitlab" + expect(page).to have_content "Group description" end step 'I should be redirected to group page' do - current_path.should == admin_group_path(Group.find_by(path: 'gitlab')) + expect(current_path).to eq admin_group_path(Group.find_by(path: 'gitlab')) end When 'I select user "John Doe" from user list as "Reporter"' do @@ -46,14 +46,14 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps step 'I should see "John Doe" in team list in every project as "Reporter"' do within ".group-users-list" do - page.should have_content "John Doe" - page.should have_content "Reporter" + expect(page).to have_content "John Doe" + expect(page).to have_content "Reporter" end end step 'I should be all groups' do Group.all.each do |group| - page.should have_content group.name + expect(page).to have_content group.name end end @@ -69,7 +69,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps step 'I should not see "John Doe" in team list' do within ".group-users-list" do - page.should_not have_content "John Doe" + expect(page).not_to have_content "John Doe" end end |
