HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/roadie-4.0.0/spec/support/have_xpath_matcher.rb
# frozen_string_literal: true

RSpec::Matchers.define :have_xpath do |xpath|
  match { |document| !document.xpath(xpath).empty? }
  failure_message { "expected document to have xpath #{xpath.inspect}"}
  failure_message_when_negated { "expected document to not have xpath #{xpath.inspect}"}
end