Sha256: 35610e42bc3cd3501d99ce639475e078f8dddb22ec7844343af7b1a72c57e756

Contents?: true

Size: 595 Bytes

Versions: 12

Compression:

Stored size: 595 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::Paragraph do
  let(:paragraph) { Druid::Elements::Paragraph }

  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 = paragraph.identifier_for t => 'value'
        expect(identifier.keys.first).to eql t
      end
    end
  end

  describe "interface" do
    it "should register with type :checkbox" do
      expect(Druid::Elements.element_class_for(:p)).to be Druid::Elements::Paragraph
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
druid-ts-1.2.2 spec/druid/elements/paragraph_spec.rb
druid-ts-1.2.1 spec/druid/elements/paragraph_spec.rb
druid-ts-1.2.0 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.8 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.7 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.6 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.5 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.4 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.3 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.2 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.1 spec/druid/elements/paragraph_spec.rb
druid-ts-1.1.0 spec/druid/elements/paragraph_spec.rb