Welcome to mirror list, hosted at ThFree Co, Russian Federation.

have_issue.rb « matchers « support « spec « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ef30f227269d8bd23b537a8324c594ed8028061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Matchers
  module HaveIssue
    RSpec::Matchers.define :have_issue do |issue|
      match do |page_object|
        page_object.has_issue?(issue)
      end

      match_when_negated do |page_object|
        page_object.has_no_issue?(issue)
      end
    end
  end
end