spec/lib/indexers/parallel_spec.rb in picky-2.6.0 vs spec/lib/indexers/parallel_spec.rb in picky-2.7.0
- old
+ new
@@ -2,13 +2,13 @@
describe Indexers::Parallel do
before(:each) do
@source = stub :source
- @tokenizer = stub :tokenizer
+ @index = stub :index, :name => :some_index, :source => @source
+
@categories = stub :categories
- @index = stub :index, :name => :some_index, :categories => @categories
@indexer = described_class.new @index
@indexer.stub! :timed_exclaim
end
@@ -20,17 +20,9 @@
cache.should_receive(:join).twice.and_return :joined
file.should_receive(:write).twice.with(:joined).and_return :joined
cache.should_receive(:clear).twice
@indexer.flush [[nil, cache, file], [nil, cache, file]]
- end
- end
-
- describe "index" do
- it "should process" do
- @indexer.should_receive(:process).once.with
-
- @indexer.index
end
end
end
\ No newline at end of file