Sha256: c3f0b3a130eab1691c9b827dc05a605123940c87a76830d887dfba9ea7b4409a

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

require 'spec_helper'

describe Hexp::CssSelector::Element do
  it 'should match elements with the same name' do
    expect(described_class.new('tag').matches?(H[:tag])).to be true
  end

  it 'should not match elements with a different name' do
    expect(described_class.new('spane').matches?(H[:div])).to be false
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hexp-0.4.6 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.5 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.4 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.3 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.2 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.1 spec/unit/hexp/css_selector/element_spec.rb
hexp-0.4.0.beta1 spec/unit/hexp/css_selector/element_spec.rb