Sha256: b7c643f83b9d5177b815204ed22313e021634ac8a40623102c61d5bad96b0d0e
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::RadioButton do describe "interface" do let(:element) { double("element") } let(:driver) { double("driver") } let(:radio) { Druid::Elements::RadioButton.new(element)} it "should select" do expect(element).to receive(:set) radio.select end it "should know if it is selected" do expect(element).to receive(:set?) radio.selected? end it "should register as type :radio" do expect(Druid::Elements.element_class_for(:input, :radio)).to be Druid::Elements::RadioButton end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.2.4 | spec/druid/elements/radio_button_spec.rb |
druid-ts-1.2.3 | spec/druid/elements/radio_button_spec.rb |