Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group.rb « group « steps « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 798c62c3a11feb1bd7583f4ece40003155944de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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