Sha256: ecff3c2026889446611e9069efcbe4ad20b55072967d7b90cf117966c0e25de3
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' require 'cantango/configuration/shared/factory_ex' require 'cantango/configuration/shared/execution_modes_ex' class MyExecutor end describe CanTango::Configuration::Ability do subject { CanTango.config.ability } it_should_behave_like 'Factory' it_should_behave_like 'Execution Modes' describe 'default_executor_class' do specify { subject.default_executor_class.should == CanTango::Ability::Executor::Modal } end describe 'default_executor_class' do specify { subject.default_executor_class.should == CanTango::Ability::Executor::Modal } end describe 'default_executor_class=' do specify do lambda { subject.default_executor_class = 's' }.should raise_error end specify do subject.default_executor_class = MyExecutor subject.default_executor_class.should == MyExecutor end end describe 'default_class' do specify { subject.default_class.should == CanTango::Ability::Base } end describe 'factor_class_method' do specify { subject.factor_class_method.should == :default_executor_class } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-config-0.1.8 | spec/cantango/configuration/ability_spec.rb |