Sha256: 0305a56e26dbd89d3b2668ed65b621f62a8a7f38721ca99f819f90a0e2c041da
Contents?: true
Size: 1.09 KB
Versions: 9
Compression:
Stored size: 1.09 KB
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(:create_entity_ids_if_required).exactly(redis_count).times expect(Flapjack::Data::Migration).to receive(:clear_orphaned_entity_ids).exactly(redis_count).times expect(Flapjack::Data::Migration).to receive(:refresh_archive_index).exactly(redis_count).times expect(Flapjack::Data::Migration).to receive(:validate_scheduled_maintenance_periods).exactly(redis_count).times frp = Flapjack::RedisPool.new(:size => redis_count) EM.stop end end end
Version data entries
9 entries across 9 versions & 1 rubygems