Sha256: a61acd8d1ca6ef7f003fd22cd58b0a4f270cc58c8f8cca27dce09bad31bf52c2
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::TextField do describe "interface" do let(:element) { double 'element' } let(:text_field) { Druid::Elements::TextField.new(element) } it "should register with type :text" do expect(Druid::Elements.element_class_for(:input, :text)).to be Druid::Elements::TextField end it "should register with type :password" do expect(Druid::Elements.element_class_for(:input, :password)).to be Druid::Elements::TextField end it "should append text" do expect(element).to receive(:append).with('abc') text_field.append('abc') end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
druid-s-1.0.0 | spec/druid/elements/text_field_spec.rb |
druid-ts-1.2.6 | spec/druid/elements/text_field_spec.rb |
druid-ts-1.2.5 | spec/druid/elements/text_field_spec.rb |