Sha256: baedfd7b0006df7db045730ab8359fb1a4bb330166f4c557fbb207ed176264c9

Contents?: true

Size: 568 Bytes

Versions: 38

Compression:

Stored size: 568 Bytes

Contents

require 'test_helper'
require 'flipper/adapters/dalli'
require 'logger'

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

  def setup
    url = ENV.fetch('MEMCACHED_URL', 'localhost:11211')
    @cache = Dalli::Client.new(url)
    Dalli.logger = Logger.new('/dev/null')
    @cache.flush
    memory_adapter = Flipper::Adapters::Memory.new
    @adapter = Flipper::Adapters::Dalli.new(memory_adapter, @cache)
  rescue Dalli::NetworkError
    ENV['CI'] ? raise : skip('Memcached not available')
  end

  def teardown
    @cache.flush
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
flipper-dalli-0.26.0 test/adapters/dalli_test.rb
flipper-dalli-0.26.0.rc2 test/adapters/dalli_test.rb
flipper-dalli-0.26.0.rc1 test/adapters/dalli_test.rb
flipper-dalli-0.25.4 test/adapters/dalli_test.rb
flipper-dalli-0.25.3 test/adapters/dalli_test.rb
flipper-dalli-0.25.2 test/adapters/dalli_test.rb
flipper-dalli-0.25.1 test/adapters/dalli_test.rb
flipper-dalli-0.25.0 test/adapters/dalli_test.rb
flipper-dalli-0.24.1 test/adapters/dalli_test.rb
flipper-dalli-0.24.0 test/adapters/dalli_test.rb
flipper-dalli-0.23.1 test/adapters/dalli_test.rb
flipper-dalli-0.23.0 test/adapters/dalli_test.rb
flipper-dalli-0.22.2 test/adapters/dalli_test.rb
flipper-dalli-0.22.1 test/adapters/dalli_test.rb
flipper-dalli-0.22.0 test/adapters/dalli_test.rb
flipper-dalli-0.21.0 test/adapters/dalli_test.rb
flipper-dalli-0.21.0.rc2 test/adapters/dalli_test.rb
flipper-dalli-0.21.0.rc1 test/adapters/dalli_test.rb