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

module Matchers
  module HaveChildPipeline
    RSpec::Matchers.define :have_child_pipeline do
      match do |page_object|
        page_object.has_child_pipeline?
      end

      match_when_negated do |page_object|
        page_object.has_no_child_pipeline?
      end
    end
  end
end