Sha256: 4e625355c028b6ac49aca9aecef82dba9f58d3ea5949047bcf02a9d2cb97928d

Contents?: true

Size: 716 Bytes

Versions: 5

Compression:

Stored size: 716 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::Button do

  describe "interface" do
    it "should register with type :submit" do
      expect(Druid::Elements.element_class_for(:input, :submit)).to be Druid::Elements::Button
    end

    it "should register with type :image" do
      expect(Druid::Elements.element_class_for(:input, :image)).to be Druid::Elements::Button
    end

    it "should register with type :button" do
      expect(Druid::Elements.element_class_for(:input, :button)).to be Druid::Elements::Button
    end

    it "should register with type :reset" do
      expect(Druid::Elements.element_class_for(:input, :reset)).to be Druid::Elements::Button
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
druid-s-1.0.0 spec/druid/elements/button_spec.rb
druid-ts-1.2.6 spec/druid/elements/button_spec.rb
druid-ts-1.2.5 spec/druid/elements/button_spec.rb
druid-ts-1.2.4 spec/druid/elements/button_spec.rb
druid-ts-1.2.3 spec/druid/elements/button_spec.rb