debian-mirror-gitlab/spec/support/helpers/issue_helpers.rb

14 lines
255 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
module IssueHelpers
def visit_issues(project, opts = {})
2017-09-10 17:25:29 +05:30
visit project_issues_path project, opts
2016-09-13 17:45:13 +05:30
end
def first_issue
page.all('ul.issues-list > li').first.text
end
def last_issue
page.all('ul.issues-list > li').last.text
end
end