Sha256: 119311a754d72f7ae4fad0550f5962ebaa48f5556a98977c790ac3f80f85348f
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe Indexes do before(:each) do @index = stub :some_index, :name => :some_index @indexes = described_class.instance end describe 'indexes' do it 'exists' do lambda { @indexes.indexes }.should_not raise_error end it 'is empty by default' do @indexes.indexes.should be_empty end end describe 'clear' do it 'clears the indexes' do @indexes.register @index @indexes.clear @indexes.indexes.should == [] end end describe 'register' do it 'adds the given index to the indexes' do @indexes.clear @indexes.register @index @indexes.indexes.should == [@index] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.6.0 | spec/lib/indexes_spec.rb |