spec/lib/indexing/bundle_spec.rb in picky-0.12.1 vs spec/lib/indexing/bundle_spec.rb in picky-0.12.2
- old
+ new
@@ -92,12 +92,13 @@
end
describe 'dump' do
it 'should trigger dumps' do
@index.should_receive(:dump_index).once.with
- @index.should_receive(:dump_similarity).once.with
@index.should_receive(:dump_weights).once.with
+ @index.should_receive(:dump_similarity).once.with
+ @index.should_receive(:dump_configuration).once.with
@index.dump
end
end
@@ -219,9 +220,12 @@
it 'should initialize the weights index correctly' do
@index.weights.should == {}
end
it 'should initialize the similarity index correctly' do
@index.similarity.should == {}
+ end
+ it 'should initialize the configuration correctly' do
+ @index.configuration.should == {}
end
it 'should initialize the partial strategy correctly' do
@index.partial_strategy.should == @partial
end
it 'should initialize the weights strategy correctly' do
\ No newline at end of file