Sha256: 946141551c5c8f10cffc670660b3ed2902cc4fd26b15ed827912fea61c947ecb
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 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(:create_entity_ids_if_required).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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flapjack-1.2.1 | spec/lib/flapjack/redis_pool_spec.rb |
flapjack-1.2.1rc3 | spec/lib/flapjack/redis_pool_spec.rb |
flapjack-1.2.1rc2 | spec/lib/flapjack/redis_pool_spec.rb |