summaryrefslogtreecommitdiff
path: root/features/steps/dashboard/dashboard_issues.rb
blob: e5caf905f953f58e0c197a1a6f8d963d1e9459c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class DashboardIssues < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths

  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 = create :project
    project.add_access(@user, :read, :write)

    2.times { create :issue, author: @user, assignee: @user, project: project }
  end
end