Sha256: 93fd572f964535e3cde2d7bf2e78f3aa7199a546447eceb6aa2131a0984f10c6

Contents?: true

Size: 559 Bytes

Versions: 8

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

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

  describe "interface" do
    it "should register with tag_name :span" do
      expect(Druid::Elements.element_class_for(:span)).to be Druid::Elements::Span
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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