Sha256: 56001e7faca3ed379cc80148481591b853629fcf900246b071cba1caf71d9e3d
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roadie-4.0.0 | spec/support/have_selector_matcher.rb |