Sha256: 4c7c7c0ab1107a4c46c974792974706f48befd11cc5cfbc958f2fcc27577bbea

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Pupa::Processor::DocumentStore do
  describe '.new' do
    it 'should use the filesystem' do
      expect(Pupa::Processor::DocumentStore::FileStore).to receive(:new).with('/tmp').and_call_original
      Pupa::Processor::DocumentStore.new('/tmp')
    end

    it 'should use Redis' do
      expect(Pupa::Processor::DocumentStore::RedisStore).to receive(:new).with('redis://localhost', {}).and_call_original
      Pupa::Processor::DocumentStore.new('redis://localhost')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pupa-0.2.4 spec/processor/document_store_spec.rb
pupa-0.2.3 spec/processor/document_store_spec.rb
pupa-0.2.2 spec/processor/document_store_spec.rb
pupa-0.2.1 spec/processor/document_store_spec.rb
pupa-0.2.0 spec/processor/document_store_spec.rb