debian-mirror-gitlab/qa/spec/support/matchers/have_content.rb
2021-02-22 17:27:13 +05:30

16 lines
319 B
Ruby

# frozen_string_literal: true
module Matchers
module HaveContent
RSpec::Matchers.define :have_content do |content|
match do |page_object|
page_object.has_content?(content)
end
match_when_negated do |page_object|
page_object.has_no_content?(content)
end
end
end
end