Implement pending dashboard step
This commit is contained in:
parent
4f7bd58307
commit
c626ec3746
|
@ -64,6 +64,14 @@ class Dashboard < Spinach::FeatureSteps
|
|||
@project.add_access(@user, :admin)
|
||||
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 'project "Shop" has push event' do
|
||||
@project = Project.find_by_name("Shop")
|
||||
|
||||
|
@ -89,4 +97,10 @@ class Dashboard < Spinach::FeatureSteps
|
|||
:author_id => @user.id
|
||||
)
|
||||
end
|
||||
|
||||
Then 'I should see groups list' do
|
||||
Group.all.each do |group|
|
||||
page.should have_link group.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue