Sha256: ff750600c7bfd7316cc3672c94a69a0dda3e42ac1a794b7833adbc6d78b4d98a
Contents?: true
Size: 718 Bytes
Versions: 51
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' describe Picky::Indexers::Parallel do before(:each) do @source = stub :source @index = stub :index, :name => :some_index, :source => @source @categories = stub :categories @indexer = described_class.new @index @indexer.stub! :timed_exclaim end describe 'flush' do it 'flushes to joined cache to the file and clears it' do cache = stub :cache file = stub :file 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 end
Version data entries
51 entries across 51 versions & 1 rubygems