spec/processor/client_spec.rb in pupa-0.1.11 vs spec/processor/client_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::Client do
describe '.new' do
it 'should use the filesystem' do
- ActiveSupport::Cache::FileStore.should_receive(:new).and_call_original
- Pupa::Processor::Client.new(cache_dir: '/tmp', level: 'UNKNOWN').get('http://example.com/')
+ expect(ActiveSupport::Cache::FileStore).to receive(:new).and_call_original
+ Pupa::Processor::Client.new(cache_dir: '/tmp', level: 'UNKNOWN').get('http://httpbin.org/')
end
it 'should use Memcached' do
- ActiveSupport::Cache::MemCacheStore.should_receive(:new).and_call_original
- Pupa::Processor::Client.new(cache_dir: 'memcached://localhost', level: 'UNKNOWN').get('http://example.com/')
+ expect(ActiveSupport::Cache::MemCacheStore).to receive(:new).and_call_original
+ Pupa::Processor::Client.new(cache_dir: 'memcached://localhost', level: 'UNKNOWN').get('http://httpbin.org/')
end
end
end