Sha256: 327e6b3c9c0f42a18184f92a92ca779e71721aec10ace057e79a7a6ff343a0af

Contents?: true

Size: 402 Bytes

Versions: 37

Compression:

Stored size: 402 Bytes

Contents

require 'test_helper'
require 'flipper/adapters/redis'

class RedisTest < MiniTest::Test
  prepend Flipper::Test::SharedAdapterTests

  def setup
    url = ENV.fetch('REDIS_URL', 'redis://localhost:6379')
    client = Redis.new(url: url).tap(&:flushdb)
    @adapter = Flipper::Adapters::Redis.new(client)
  rescue Redis::CannotConnectError
    ENV['CI'] ? raise : skip('Redis not available')
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
flipper-redis-1.3.2 test/adapters/redis_test.rb
flipper-redis-1.3.1 test/adapters/redis_test.rb
flipper-redis-1.3.0 test/adapters/redis_test.rb
flipper-redis-1.3.0.pre test/adapters/redis_test.rb
flipper-redis-1.2.2 test/adapters/redis_test.rb
flipper-redis-1.2.1 test/adapters/redis_test.rb
flipper-redis-1.2.0 test/adapters/redis_test.rb
flipper-redis-1.1.2 test/adapters/redis_test.rb
flipper-redis-1.1.1 test/adapters/redis_test.rb
flipper-redis-1.1.0 test/adapters/redis_test.rb
flipper-redis-1.0.0 test/adapters/redis_test.rb
flipper-redis-1.0.0.pre test/adapters/redis_test.rb
flipper-redis-0.28.3 test/adapters/redis_test.rb
flipper-redis-0.28.2 test/adapters/redis_test.rb
flipper-redis-0.28.1 test/adapters/redis_test.rb
flipper-redis-0.28.0 test/adapters/redis_test.rb
flipper-redis-0.27.1 test/adapters/redis_test.rb
flipper-redis-0.27.0 test/adapters/redis_test.rb
flipper-redis-0.26.2 test/adapters/redis_test.rb
flipper-redis-0.26.0 test/adapters/redis_test.rb