Sha256: 90bba2875cc7d6e44f5dbc6ae41c9aa926d1d000385de3ab896ffcd995ce8499
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
require 'spec_helper' describe Domkey::View::OptionSelectable do class OptionSelectableFaker include Domkey::View::OptionSelectable end before :all do @widget = OptionSelectableFaker.new end it 'set string' do expect { @widget.set('fake') }.to raise_error(Domkey::Exception::NotImplementedError) end it 'set regex' do expect { @widget.set(/fake/) }.to raise_error(Domkey::Exception::NotImplementedError) end it 'set :label' do expect { @widget.set(:label => 'fake') }.to raise_error(Domkey::Exception::NotImplementedError) end it 'set :text' do expect { @widget.set(:text => 'fake') }.to raise_error(Domkey::Exception::NotImplementedError) end it 'set :index' do expect { @widget.set(:index => 3) }.to raise_error(Domkey::Exception::NotImplementedError) end it 'set :value' do expect { @widget.set(:value => 'fake') }.to raise_error(Domkey::Exception::NotImplementedError) end it 'value default' do expect { @widget.value }.to raise_error(Domkey::Exception::NotImplementedError) end it 'value option' do expect { @widget.value(:foo) }.to raise_error(Domkey::Exception::NotImplementedError) end it 'options default' do expect { @widget.options }.to raise_error(Domkey::Exception::NotImplementedError) end it 'options opt' do expect { @widget.options(:foo) }.to raise_error(Domkey::Exception::NotImplementedError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
domkey-0.3.0 | spec/option_selectable_spec.rb |