Sha256: e6cbe72be752d9ce10ec858cdfa08db096447fbfbd1348b926b155c28f442398
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
shared_examples_for 'Registry' do describe 'default settings' do its(:registered) { should_not be_empty } it 'should register groups' do subject.register(:a, :b) subject.registered.should include(:a, :b) end it 'should set defaults' do subject.default = :a, :b subject.default.should include(:a, :b) end end describe 'register' do before do subject.register :abc, :def end its(:registered) { should include(:abc, :def) } end describe 'append <<' do before do subject.clean! subject.register :abc, :def subject << :xyz end its(:registered) { should include(:abc, :def, :xyz) } end describe 'get index []' do before do subject.clean! subject.register :abc, :def end specify {subject[0].should == :abc } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | spec/cantango/configuration/shared/registry_ex.rb |