Sha256: 2f7376e6abbcae4408d9714ef86c75a790fda397d9b10fc38d815a0a97aa3c1c
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'spec_helper' describe Indexes do before(:each) do @index = stub :some_index, :name => :some_index @indexes = described_class.instance end describe 'clear_indexes' do it 'clears the indexes' do @indexes.register @index @indexes.clear_indexes @indexes.indexes.should == [] end end describe 'register' do it 'adds the given index to the indexes' do @indexes.clear_indexes Indexes.register @index @indexes.indexes.should == [@index] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/indexes_class_spec.rb |