spec/redis/pool_spec.rb in wayfarer-0.4.0 vs spec/redis/pool_spec.rb in wayfarer-0.4.1
- old
+ new
@@ -6,10 +6,10 @@
let(:conn) { spy }
subject(:pool) { Wayfarer::Redis::Pool.send(:new) }
describe "::with" do
before do
- Wayfarer.config.redis_factory = -> { conn }
+ Wayfarer.config.redis.factory = ->(_) { conn }
end
it "instantiates the factory and yields" do
pool.with { |x| expect(x).to be(conn) }
end