2012-09-10 10:51:02 +02:00
|
|
|
class DashboardIssues < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
|
|
|
|
2012-09-10 10:51:02 +02:00
|
|
|
Then 'I should see issues assigned to me' do
|
|
|
|
issues = @user.issues
|
|
|
|
issues.each do |issue|
|
|
|
|
page.should have_content(issue.title[0..10])
|
|
|
|
page.should have_content(issue.project.name)
|
2012-11-20 05:49:25 +01:00
|
|
|
page.should have_link(issue.project.name)
|
2012-09-10 10:51:02 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I have assigned issues' do
|
2012-11-07 12:56:48 +01:00
|
|
|
project = create :project
|
2013-01-04 07:43:25 +01:00
|
|
|
project.team << [@user, :master]
|
2012-09-10 10:51:02 +02:00
|
|
|
|
2012-11-07 12:56:48 +01:00
|
|
|
2.times { create :issue, author: @user, assignee: @user, project: project }
|
2012-09-10 10:51:02 +02:00
|
|
|
end
|
|
|
|
end
|