diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-03 14:42:17 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-03 14:42:17 +0400 |
commit | 8b76e30656954c2dd95121fff46c4bc6cc81bb74 (patch) | |
tree | 752789a7cbb9598616297099bd3070d522a10400 /features/steps/group | |
parent | 224fb5770ce71061861f5c2bddb01924d668a841 (diff) |
Spianch test for group dashboard
Diffstat (limited to 'features/steps/group')
-rw-r--r-- | features/steps/group/group.rb | 32 |
1 files changed, 32 insertions, 0 deletions
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 |