diff options
Diffstat (limited to 'features/steps/admin/groups.rb')
-rw-r--r-- | features/steps/admin/groups.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/features/steps/admin/groups.rb b/features/steps/admin/groups.rb index 811b5115b56..4f0ba05606d 100644 --- a/features/steps/admin/groups.rb +++ b/features/steps/admin/groups.rb @@ -13,7 +13,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps click_link "New Group" end - And 'I have group with projects' do + step 'I have group with projects' do @group = create(:group) @project = create(:project, group: @group) @event = create(:closed_issue_event, project: @project) @@ -21,18 +21,18 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps @project.team << [current_user, :master] end - And 'submit form with new group info' do + step 'submit form with new group info' do fill_in 'group_name', with: 'gitlab' fill_in 'group_description', with: 'Group description' click_button "Create group" end - Then 'I should see newly created group' do + step 'I should see newly created group' do page.should have_content "Group: gitlab" page.should have_content "Group description" end - Then 'I should be redirected to group page' do + step 'I should be redirected to group page' do current_path.should == admin_group_path(Group.last) end @@ -45,7 +45,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps click_button "Add users into group" end - Then 'I should see "John Doe" in team list in every project as "Reporter"' do + 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" |