Sha256: 32581ec6b043b6a616dccacb3685fe5b077e95aa1105a165cb746e4928c29470

Contents?: true

Size: 316 Bytes

Versions: 22

Compression:

Stored size: 316 Bytes

Contents

RSpec::Matchers.define :have_selector do |selector|
  match { |document| document.css(selector).present? }
  failure_message_for_should { "expected document to #{name_to_sentence}#{expected_to_sentence}"}
  failure_message_for_should_not { "expected document to not #{name_to_sentence}#{expected_to_sentence}"}
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
roadie-2.4.3 spec/support/have_selector_matcher.rb
md-roadie-2.4.2.md.1 spec/support/have_selector_matcher.rb
roadie-2.4.2 spec/support/have_selector_matcher.rb
roadie-2.4.1 spec/support/have_selector_matcher.rb
roadie-2.4.0 spec/support/have_selector_matcher.rb
roadie-2.3.4 spec/support/have_selector_matcher.rb
roadie-2.3.3 spec/support/have_selector_matcher.rb
roadie-2.3.2 spec/support/have_selector_matcher.rb
roadie-2.3.1 spec/support/have_selector_matcher.rb
roadie-2.3.0 spec/support/have_selector_matcher.rb
roadie-2.3.0.pre1 spec/support/have_selector_matcher.rb
roadie-2.2.0 spec/support/have_selector_matcher.rb
roadie-2.1.0 spec/support/have_selector_matcher.rb
roadie-2.1.0.pre2 spec/support/have_selector_matcher.rb
roadie-2.1.0.pre1 spec/support/have_selector_matcher.rb
roadie-2.0.0 spec/support/have_selector_matcher.rb
roadie-1.1.3 spec/support/have_selector_matcher.rb
roadie-1.1.1 spec/support/have_selector_matcher.rb
roadie-1.1.2 spec/support/have_selector_matcher.rb
roadie-1.1.0 spec/support/have_selector_matcher.rb