spec/processor/document_store_spec.rb in pupa-0.1.11 vs spec/processor/document_store_spec.rb in pupa-0.2.0
- old
+ new
@@ -1,15 +1,15 @@
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
+ expect(Pupa::Processor::DocumentStore::FileStore).to 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
+ expect(Pupa::Processor::DocumentStore::RedisStore).to receive(:new).with('redis://localhost', {}).and_call_original
Pupa::Processor::DocumentStore.new('redis://localhost')
end
end
end