Sha256: 3b72dc916032c51ca3e0516c6c67b53108939fe0194a00798b8779eb03de158e

Contents?: true

Size: 468 Bytes

Versions: 15

Compression:

Stored size: 468 Bytes

Contents

require 'test_helper'
require 'flipper/adapters/memory'
require 'flipper/adapters/redis_cache'

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

  def setup
    url = ENV.fetch('REDIS_URL', 'redis://localhost:6379')
    @cache = Redis.new(url: url).tap(&:flushdb)
    memory_adapter = Flipper::Adapters::Memory.new
    @adapter = Flipper::Adapters::RedisCache.new(memory_adapter, @cache)
  end

  def teardown
    @cache.flushdb
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
flipper-redis-0.15.0 test/adapters/redis_cache_test.rb
flipper-redis-0.14.0 test/adapters/redis_cache_test.rb
flipper-redis-0.13.0 test/adapters/redis_cache_test.rb
flipper-redis-0.13.0.beta1 test/adapters/redis_cache_test.rb
flipper-redis-0.12.2 test/adapters/redis_cache_test.rb
flipper-redis-0.12.1 test/adapters/redis_cache_test.rb
flipper-redis-0.12.0 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.rc1 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta9 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta8 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta7 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta6 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta5 test/adapters/redis_cache_test.rb
flipper-redis-0.11.0.beta4 test/adapters/redis_cache_test.rb