Sha256: 33d124864254cf67befe0a4bb6a848dbfc5134d3e6f5d8cbbfd1a36e31aa2a17
Contents?: true
Size: 435 Bytes
Versions: 8
Compression:
Stored size: 435 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 } ::Redis.should_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
8 entries across 8 versions & 1 rubygems