Sha256: e6bdb4401cb33231c36456442602a7e9ee791e651a03de5be791a99daaa2e5a8
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Pupa::Processor::Client do describe '.new', vcr: {cassette_name: 'cache'} do it 'should use the filesystem' do 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pupa-0.2.4 | spec/processor/client_spec.rb |