Sha256: 498773509c7b50b83206a21b9ece3c6a58ec9a1ec53823ce6674f4720f737598
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 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 "start_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 data preparation.' @indexer.start_indexing_message end end describe "finish_indexing_message" do it "informs the user about what it is going to index" do @indexer.should_receive(:timed_exclaim).once.with '"some_identifier": Finished serial data preparation.' @indexer.finish_indexing_message end end describe "source" do it "returns the one given to is" do @indexer.source.should == @source end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/indexers/serial_spec.rb |