Sha256: 0b135abfb6becadaf7138c9c180a9adc65c35cfa73f6a3afd288ec2be5cb5e96

Contents?: true

Size: 146 Bytes

Versions: 5

Compression:

Stored size: 146 Bytes

Contents

RSpec::Matchers.define :have_tag do |tag|
  match do |string|
    document = Nokogiri::HTML(string)
    !!document.at_xpath(".//#{tag}")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
table_cloth-0.3.2 spec/support/matchers/element_matchers.rb
table_cloth-0.3.1.alpha1 spec/support/matchers/element_matchers.rb
table_cloth-0.3.0.beta3 spec/support/matchers/element_matchers.rb
table_cloth-0.3.0.beta2 spec/support/matchers/element_matchers.rb
table_cloth-0.3.0.beta1 spec/support/matchers/element_matchers.rb