Sha256: fe04b498658a60d0acee17151e52350056115e288fc95035c024e908e4fc6d7a

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roadie-5.2.1 spec/support/have_xpath_matcher.rb
roadie-5.2.0 spec/support/have_xpath_matcher.rb
roadie-5.1.0 spec/support/have_xpath_matcher.rb
roadie-5.0.1 spec/support/have_xpath_matcher.rb
roadie-5.0.0 spec/support/have_xpath_matcher.rb