Sha256: 29bd50ccee618f1a2f3625a544d335e864a6002aa1f412bc2183b347fc36ccac
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' describe Cachetastic::Adapters::Redis do describe "connection" do it "respects the configatron.defaults.redis_host option" do configatron.temp do configatron.cachetastic.defaults.redis_host = "redis://example.com:1234/" ::Redis.should_receive(:new).with({ url: "redis://example.com:1234/", scheme: "redis", host: "example.com", port: 1234, path: nil, timeout: 5.0, password: nil, db: "cachetastic", driver: nil, id: nil, tcp_keepalive: 0 }) adapter = Cachetastic::Adapters::Redis.new(CarCache) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cachetastic-3.7.0 | spec/cachetastic/adapters/redis_spec.rb |
cachetastic-3.6.0 | spec/cachetastic/adapters/redis_spec.rb |
cachetastic-3.5.3 | spec/cachetastic/adapters/redis_spec.rb |