OSDN Git Service

Test admin:group#index
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 26 Jun 2013 12:09:17 +0000 (15:09 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 26 Jun 2013 12:09:17 +0000 (15:09 +0300)
features/admin/groups.feature
features/steps/admin/admin_groups.rb

index 054dccf..6fed9a3 100644 (file)
@@ -5,6 +5,9 @@ Feature: Admin Groups
     And Create gitlab user "John"
     And I visit admin groups page
 
+  Scenario: See group list
+    Then I should be all groups
+
   Scenario: Create a group
     When I click new group link
     And submit form with new group info
index c463d37..b4591f2 100644 (file)
@@ -55,6 +55,12 @@ class AdminGroups < Spinach::FeatureSteps
     end
   end
 
+  step 'I should be all groups' do
+    Group.all.each do |group|
+      page.should have_content group.name
+    end
+  end
+
   protected
 
   def current_group