Implement pending dashboard step

This commit is contained in:
randx 2012-10-03 23:46:55 +03:00
parent 4f7bd58307
commit c626ec3746

View file

@ -64,6 +64,14 @@ class Dashboard < Spinach::FeatureSteps
@project.add_access(@user, :admin) @project.add_access(@user, :admin)
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 'project "Shop" has push event' do And 'project "Shop" has push event' do
@project = Project.find_by_name("Shop") @project = Project.find_by_name("Shop")
@ -89,4 +97,10 @@ class Dashboard < Spinach::FeatureSteps
:author_id => @user.id :author_id => @user.id
) )
end end
Then 'I should see groups list' do
Group.all.each do |group|
page.should have_link group.name
end
end
end end