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_selector_matcher.rb
# frozen_string_literal: true

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