Sha256: 0eb80b009ccc8da6a041004eac0ce46dddeef19559ea44fedc7a32534d5743ff
Contents?: true
Size: 499 Bytes
Versions: 15
Compression:
Stored size: 499 Bytes
Contents
require 'spec_helper' require 'flapjack/redis_pool' describe Flapjack::RedisPool do it "is initialized, and emptied" do EM.synchrony do redis_count = 3 redis_conns = redis_count.times.collect { redis = mock('redis') redis.should_receive(:quit) redis } ::Redis.should_receive(:new).exactly(redis_count).times.and_return(*redis_conns) frp = Flapjack::RedisPool.new(:size => redis_count) frp.empty! EM.stop end end end
Version data entries
15 entries across 15 versions & 1 rubygems