spec/support/have_xpath_matcher.rb in roadie-4.0.0 vs spec/support/have_xpath_matcher.rb in roadie-5.0.0
- old
+ new
@@ -1,8 +1,7 @@
# 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}"}
+ failure_message { "expected document to have xpath #{xpath.inspect}" }
+ failure_message_when_negated { "expected document to not have xpath #{xpath.inspect}" }
end
-