summaryrefslogtreecommitdiff
path: root/qa/spec/support/matchers/have_pipeline.rb
blob: 2bfd49d671abab138b736dcb024e0b05ee28214d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Matchers
  module HavePipeline
    RSpec::Matchers.define :have_pipeline do
      match do |page_object|
        page_object.has_pipeline?
      end

      match_when_negated do |page_object|
        page_object.has_no_pipeline?
      end
    end
  end
end