spec/lib/indexing/indexes_spec.rb in picky-2.1.2 vs spec/lib/indexing/indexes_spec.rb in picky-2.2.0

- old
+ new

@@ -21,11 +21,11 @@ context 'with index:category found' do before(:each) do indexes.should_receive(:find).once.with(:index, :category).and_return @index1 end it 'indexes' do - @index1.should_receive(:index).once.with + @index1.should_receive(:index!).once.with indexes.generate_index_only :index, :category end end context 'with index not found' do @@ -62,13 +62,13 @@ end end describe 'index_for_tests' do it 'takes a snapshot, then indexes and caches each' do indexes.should_receive(:take_snapshot).once.with.ordered - @index1.should_receive(:index).once.with.ordered - @index1.should_receive(:cache).once.with.ordered - @index2.should_receive(:index).once.with.ordered - @index2.should_receive(:cache).once.with.ordered + @index1.should_receive(:index!).once.with.ordered + @index1.should_receive(:cache!).once.with.ordered + @index2.should_receive(:index!).once.with.ordered + @index2.should_receive(:cache!).once.with.ordered indexes.index_for_tests end end describe 'register' do \ No newline at end of file