spec/support/have_attribute_matcher.rb in roadie-4.0.0 vs spec/support/have_attribute_matcher.rb in roadie-5.0.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true RSpec::Matchers.define :have_attribute do |attribute| - @selector = 'body > *:first' + @selector = "body > *:first" chain :at_selector do |selector| @selector = selector end @@ -25,6 +25,5 @@ def attribute(document, attribute_name) node = document.css(@selector).first node && node[attribute_name] end end -