Sha256: f64b2c6e689f7b4703d11180250c768df79271b8afa0f2273fa03a14f977d977

Contents?: true

Size: 563 Bytes

Versions: 7

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::ListItem do
  describe "when mapping how to find an element" do
    it "should map watir types to same" do
      [:class, :id, :index, :name, :xpath, :text].each do |t|
        identifier = Druid::Elements::ListItem.identifier_for t => 'value'
        expect(identifier.keys.first).to eql t
      end
    end
  end

  describe "interface" do
    it "should register as tag_name :li" do
      expect(Druid::Elements.element_class_for(:li)).to be Druid::Elements::ListItem
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
druid-ts-1.2.2 spec/druid/elements/list_item_spec.rb
druid-ts-1.2.1 spec/druid/elements/list_item_spec.rb
druid-ts-1.2.0 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.8 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.7 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.6 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.5 spec/druid/elements/list_item_spec.rb