Commit a064060096aa99403f626544acaa307dea709e2d
1 parent
112e9198
Exists in
master
and in
4 other branches
Test admin:group#index
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
features/admin/groups.feature
| @@ -5,6 +5,9 @@ Feature: Admin Groups | @@ -5,6 +5,9 @@ Feature: Admin Groups | ||
| 5 | And Create gitlab user "John" | 5 | And Create gitlab user "John" |
| 6 | And I visit admin groups page | 6 | And I visit admin groups page |
| 7 | 7 | ||
| 8 | + Scenario: See group list | ||
| 9 | + Then I should be all groups | ||
| 10 | + | ||
| 8 | Scenario: Create a group | 11 | Scenario: Create a group |
| 9 | When I click new group link | 12 | When I click new group link |
| 10 | And submit form with new group info | 13 | And submit form with new group info |
features/steps/admin/admin_groups.rb
| @@ -55,6 +55,12 @@ class AdminGroups < Spinach::FeatureSteps | @@ -55,6 +55,12 @@ class AdminGroups < Spinach::FeatureSteps | ||
| 55 | end | 55 | end |
| 56 | end | 56 | end |
| 57 | 57 | ||
| 58 | + step 'I should be all groups' do | ||
| 59 | + Group.all.each do |group| | ||
| 60 | + page.should have_content group.name | ||
| 61 | + end | ||
| 62 | + end | ||
| 63 | + | ||
| 58 | protected | 64 | protected |
| 59 | 65 | ||
| 60 | def current_group | 66 | def current_group |