Sha256: f1ba62753c41e8731d6741c7b35db78b7560e1566a12b2eaaf60fc5e6de22f12
Contents?: true
Size: 532 Bytes
Versions: 7
Compression:
Stored size: 532 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::Option do describe "interface" do it "should register as tag_name :option" do expect(Druid::Elements.element_class_for(:option)).to be Druid::Elements::Option end end end describe "interacting with the option" do let(:we) { double 'we' } let(:element) { Druid::Elements::Option.new(we) } it "should know if it is selected" do expect(we).to receive(:selected?).and_return true expect(element.selected?).to be true end end
Version data entries
7 entries across 7 versions & 2 rubygems