Sha256: 4c2b4404247478040fc166568eef17bfd32f1db41d0a1a81a44bf0adfbbd3784
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 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(:correct_notification_rule_contact_linkages).exactly(redis_count).times 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.0 | spec/lib/flapjack/redis_pool_spec.rb |