Sha256: 2e7da6875a5252fe61e8d78f053f81d24620baa73a0f750fac872d82098511f7

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::TextArea do
  describe "interface" do
    let(:element) { double "element" }
    let(:text_area) { Druid::Elements::TextArea.new(element) }
    it "should set its' value" do
      expect(element).to receive(:set).with('test')
      text_area.value = 'test'
    end

    it "should register with tag_name :textarea" do
      expect(Druid::Elements.element_class_for(:textarea)).to be Druid::Elements::TextArea
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.2.4 spec/druid/elements/text_area_spec.rb
druid-ts-1.2.3 spec/druid/elements/text_area_spec.rb