Sha256: 071f75c3183fa6c1a0beb0c3c3a0658b7680ae1059bf3ed627affdd9ce5e6c8f

Contents?: true

Size: 433 Bytes

Versions: 34

Compression:

Stored size: 433 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 = mock('redis')
        redis
      }
      ::Redis.should_receive(:new).exactly(redis_count).times.and_return(*redis_conns)

      frp = Flapjack::RedisPool.new(:size => redis_count)

      EM.stop
    end
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
flapjack-0.7.5 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.7.4 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.7.3 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.7.2 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.7.1 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.7.0 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.61 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.60 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.59 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.58 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.57 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.56 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.55 spec/lib/flapjack/redis_pool_spec.rb
flapjack-0.6.54 spec/lib/flapjack/redis_pool_spec.rb