Sha256: 71457f7ef79b8aac9d8c7eb991121f74425fde48e9c2b27c9106f0c39556e476

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 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].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

5 entries across 5 versions & 1 rubygems

Version Path
druid-ts-1.1.4 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.3 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.2 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.1 spec/druid/elements/list_item_spec.rb
druid-ts-1.1.0 spec/druid/elements/list_item_spec.rb