spec/client_spec.rb in redlock-2.0.4 vs spec/client_spec.rb in redlock-2.0.5

- old
+ new

@@ -28,14 +28,10 @@ let(:redis2_host) { ENV["REDIS2_HOST"] || "127.0.0.1" } let(:redis2_port) { ENV["REDIS2_PORT"] || "6379" } let(:redis3_host) { ENV["REDIS3_HOST"] || "127.0.0.1" } let(:redis3_port) { ENV["REDIS3_PORT"] || "6379" } let(:unreachable_redis) { - redis = RedisClient.new(url: 'redis://localhost:46864') - def redis.with - yield self - end - redis + RedisClient.new(url: 'redis://localhost:46864') } describe 'initialize' do it 'accepts both redis URLs and Redis objects' do servers = [ "redis://#{redis1_host}:#{redis1_port}", RedisClient.new(url: "redis://#{redis2_host}:#{redis2_port}") ]