diff options
author | Valery Sizov <vsv2711@gmail.com> | 2012-10-03 12:17:48 +0000 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2012-10-03 12:17:48 +0000 |
commit | 9e80d2d4f79edf81185461a34a50adcd251073f1 (patch) | |
tree | 591cc21b8f48b9cafda4fbf7554bb093300bc8e9 /features | |
parent | dc22dd8aded81f10b8b9fc06f8c423043aa01d0a (diff) | |
parent | c8412bc9edbbed7a38cc4880f0d8cbb9091eb1d9 (diff) | |
download | gitlab-ce-9e80d2d4f79edf81185461a34a50adcd251073f1.tar.gz |
Merge branch 'feature/groups' of dev.gitlabhq.com:gitlabhq
Diffstat (limited to 'features')
-rw-r--r-- | features/dashboard/dashboard.feature | 5 | ||||
-rw-r--r-- | features/group/group.feature | 9 | ||||
-rw-r--r-- | features/steps/group/group.rb | 32 |
3 files changed, 46 insertions, 0 deletions
diff --git a/features/dashboard/dashboard.feature b/features/dashboard/dashboard.feature index 40217a7d904..24296f46579 100644 --- a/features/dashboard/dashboard.feature +++ b/features/dashboard/dashboard.feature @@ -10,6 +10,11 @@ Feature: Dashboard Then I should see "Shop" project link Then I should see project "Shop" activity feed + Scenario: I should see groups list + Given I have group with projects + And I visit dashboard page + Then I should see groups list + Scenario: I should see last push widget Then I should see last push widget And I click "Create Merge Request" link diff --git a/features/group/group.feature b/features/group/group.feature new file mode 100644 index 00000000000..dbddb92ccce --- /dev/null +++ b/features/group/group.feature @@ -0,0 +1,9 @@ +Feature: Groups + Background: + Given I sign in as a user + And I have group with projects + + Scenario: I should see group dashboard list + When I visit group page + Then I should see projects list + And I should see projects activity feed diff --git a/features/steps/group/group.rb b/features/steps/group/group.rb new file mode 100644 index 00000000000..798c62c3a11 --- /dev/null +++ b/features/steps/group/group.rb @@ -0,0 +1,32 @@ +class Groups < Spinach::FeatureSteps + include SharedAuthentication + include SharedPaths + + When 'I visit group page' do + visit group_path(current_group) + end + + Then 'I should see projects list' do + current_user.projects.each do |project| + page.should have_link project.name + end + end + + And 'I have group with projects' do + @group = Factory :group + @project = Factory :project, group: @group + @event = Factory :closed_issue_event, project: @project + + @project.add_access current_user, :admin + end + + And 'I should see projects activity feed' do + page.should have_content 'closed issue' + end + + protected + + def current_group + @group ||= Group.first + end +end |