Sha256: 15d7ef243ea497e02b54a4f4a37d36ea3534ee42e8d34db24bd49774c01ff775
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::CheckBox do describe "interface" do let(:element) { double 'element' } let(:checkbox) { Druid::Elements::CheckBox.new(element) } it "should check" do expect(element).to receive(:set) checkbox.check end it "should uncheck" do expect(element).to receive(:clear) checkbox.uncheck end it "should know if it is checked" do expect(element).to receive(:set?) checkbox.checked? end it "should register with type :checkbox" do expect(Druid::Elements.element_class_for(:input, :checkbox)).to be Druid::Elements::CheckBox end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.2.4 | spec/druid/elements/check_box_spec.rb |
druid-ts-1.2.3 | spec/druid/elements/check_box_spec.rb |