Sha256: da647667814e360ba0dba704f3dbae7230f52d5398201af271b57536ca9f37ab

Contents?: true

Size: 557 Bytes

Versions: 17

Compression:

Stored size: 557 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

17 entries across 17 versions & 1 rubygems

Version Path
pupa-0.1.11 spec/processor/document_store_spec.rb
pupa-0.1.10 spec/processor/document_store_spec.rb
pupa-0.1.9 spec/processor/document_store_spec.rb
pupa-0.1.8 spec/processor/document_store_spec.rb
pupa-0.1.7 spec/processor/document_store_spec.rb
pupa-0.1.6 spec/processor/document_store_spec.rb
pupa-0.1.5 spec/processor/document_store_spec.rb
pupa-0.1.4 spec/processor/document_store_spec.rb
pupa-0.1.3 spec/processor/document_store_spec.rb
pupa-0.1.2 spec/processor/document_store_spec.rb
pupa-0.1.1 spec/processor/document_store_spec.rb
pupa-0.1.0 spec/processor/document_store_spec.rb
pupa-0.0.13 spec/processor/document_store_spec.rb
pupa-0.0.12 spec/processor/document_store_spec.rb
pupa-0.0.11 spec/processor/document_store_spec.rb
pupa-0.0.10 spec/processor/document_store_spec.rb
pupa-0.0.9 spec/processor/document_store_spec.rb