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)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I have assigned issues' do
|
|
|
|
project = Factory :project
|
|
|
|
project.add_access(@user, :read, :write)
|
|
|
|
|
2012-09-10 17:35:03 +02:00
|
|
|
2.times { Factory :issue, :author => @user, :assignee => @user, :project => project }
|
2012-09-10 10:51:02 +02:00
|
|
|
end
|
|
|
|
end
|