Sha256: 071f75c3183fa6c1a0beb0c3c3a0658b7680ae1059bf3ed627affdd9ce5e6c8f
Contents?: true
Size: 433 Bytes
Versions: 34
Compression:
Stored size: 433 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 = mock('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
34 entries across 34 versions & 1 rubygems