Sha256: 83fcfe628b71e9bb3163234f340f4f6d09b68b5a7ecbd7b64eabbfb48240fc33
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 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) expect(Flapjack::Data::Migration).to receive(:refresh_archive_index).exactly(redis_count).times frp = Flapjack::RedisPool.new(:size => redis_count) EM.stop end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flapjack-0.9.6 | spec/lib/flapjack/redis_pool_spec.rb |