Sha256: c92e208fa24a860519cf809b38f421e73ac146d245a72ef231223e3f97c39359
Contents?: true
Size: 1.14 KB
Versions: 8
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe Indexers::Serial do before(:each) do @tokenizer = stub :tokenizer @source = stub :source @category = stub :category, :identifier => :some_identifier, :tokenizer => @tokenizer, :source => @source @indexer = described_class.new @category @indexer.stub! :timed_exclaim end describe "tokenizer" do it "returns the right one" do @indexer.tokenizer.should == @tokenizer end end describe "indexing_message" do it "informs the user about what it is going to index" do @indexer.should_receive(:timed_exclaim).once.with '"some_identifier": Starting serial indexing.' @indexer.indexing_message end end describe "tokenizer" do it "returns it" do @indexer.should_receive(:tokenizer).once.with @indexer.tokenizer end end describe "index" do it "should process" do @indexer.should_receive(:process).once.with @indexer.index end end describe "source" do it "returns the one given to is" do @indexer.source.should == @source end end describe "chunked" do end end
Version data entries
8 entries across 8 versions & 1 rubygems