Sha256: 34e685085c9fdcb25737b05ace617af1bba1d2d9449ac3acf3550e8d4edf5975

Contents?: true

Size: 596 Bytes

Versions: 18

Compression:

Stored size: 596 Bytes

Contents

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/')
    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/')
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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