Sha256: a249acc5b67853aa9f1406df41fe9a9a48b6825518d1ef74ad35e5b26e8b1c27

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
roadie-3.5.1 spec/support/have_xpath_matcher.rb
roadie-3.5.0 spec/support/have_xpath_matcher.rb
roadie-3.4.0 spec/support/have_xpath_matcher.rb
roadie-3.3.0 spec/support/have_xpath_matcher.rb