Sha256: 435c05ae40dfccd5ec605178e2c8c7eb36799c0c57e9852b8ec53206abccfb7a
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 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(:migrate_entity_check_data_if_required).exactly(redis_count).times 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-1.2.0rc2 | spec/lib/flapjack/redis_pool_spec.rb |