summaryrefslogtreecommitdiff
path: root/spec/support/helpers/issue_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/issue_helpers.rb')
-rw-r--r--spec/support/helpers/issue_helpers.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/support/helpers/issue_helpers.rb b/spec/support/helpers/issue_helpers.rb
new file mode 100644
index 00000000000..ffd72515f37
--- /dev/null
+++ b/spec/support/helpers/issue_helpers.rb
@@ -0,0 +1,13 @@
+module IssueHelpers
+ def visit_issues(project, opts = {})
+ visit project_issues_path project, opts
+ 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