Sha256: 4a8566cb0d08dcea687f1bc4998a6e9f00126fb32e1175673dee4fb5ba94aea3
Contents?: true
Size: 439 Bytes
Versions: 27
Compression:
Stored size: 439 Bytes
Contents
require 'spec_helper' require 'flapjack/redis_pool' describe Flapjack::RedisPool do it "is initialized" do EM.synchrony do redis_count = 3 redis_conns = redis_count.times.collect { redis = double('redis') redis } expect(::Redis).to receive(:new).exactly(redis_count).times.and_return(*redis_conns) frp = Flapjack::RedisPool.new(:size => redis_count) EM.stop end end end
Version data entries
27 entries across 27 versions & 1 rubygems