Sha256: 005299196a750948448c0cae4b0ce1387b853e64fdb4d15a3ba4a6a5aa3dbceb

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 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
      Pupa::Processor::DocumentStore::FileStore.should_receive(:new).with('/tmp').and_call_original
      Pupa::Processor::DocumentStore.new('/tmp')
    end

    it 'should use Redis' do
      Pupa::Processor::DocumentStore::RedisStore.should_receive(:new).with('redis://localhost').and_call_original
      Pupa::Processor::DocumentStore.new('redis://localhost')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pupa-0.0.8 spec/processor/document_store_spec.rb