Commit c626ec3746f0346a4a90ebf6a0860583b79dd250
1 parent
4f7bd583
Exists in
master
and in
4 other branches
Implement pending dashboard step
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
features/steps/dashboard/dashboard.rb
| ... | ... | @@ -64,6 +64,14 @@ class Dashboard < Spinach::FeatureSteps |
| 64 | 64 | @project.add_access(@user, :admin) |
| 65 | 65 | end |
| 66 | 66 | |
| 67 | + And 'I have group with projects' do | |
| 68 | + @group = Factory :group | |
| 69 | + @project = Factory :project, group: @group | |
| 70 | + @event = Factory :closed_issue_event, project: @project | |
| 71 | + | |
| 72 | + @project.add_access current_user, :admin | |
| 73 | + end | |
| 74 | + | |
| 67 | 75 | And 'project "Shop" has push event' do |
| 68 | 76 | @project = Project.find_by_name("Shop") |
| 69 | 77 | |
| ... | ... | @@ -89,4 +97,10 @@ class Dashboard < Spinach::FeatureSteps |
| 89 | 97 | :author_id => @user.id |
| 90 | 98 | ) |
| 91 | 99 | end |
| 100 | + | |
| 101 | + Then 'I should see groups list' do | |
| 102 | + Group.all.each do |group| | |
| 103 | + page.should have_link group.name | |
| 104 | + end | |
| 105 | + end | |
| 92 | 106 | end | ... | ... |