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-1.3.2 test/adapters/dalli_test.rb
flipper-dalli-1.3.1 test/adapters/dalli_test.rb
flipper-dalli-1.3.0 test/adapters/dalli_test.rb
flipper-dalli-1.3.0.pre test/adapters/dalli_test.rb
flipper-dalli-1.2.2 test/adapters/dalli_test.rb
flipper-dalli-1.2.1 test/adapters/dalli_test.rb
flipper-dalli-1.2.0 test/adapters/dalli_test.rb
flipper-dalli-1.1.2 test/adapters/dalli_test.rb
flipper-dalli-1.1.1 test/adapters/dalli_test.rb
flipper-dalli-1.1.0 test/adapters/dalli_test.rb
flipper-dalli-1.0.0 test/adapters/dalli_test.rb
flipper-dalli-1.0.0.pre test/adapters/dalli_test.rb
flipper-dalli-0.28.3 test/adapters/dalli_test.rb
flipper-dalli-0.28.2 test/adapters/dalli_test.rb
flipper-dalli-0.28.1 test/adapters/dalli_test.rb
flipper-dalli-0.28.0 test/adapters/dalli_test.rb
flipper-dalli-0.27.1 test/adapters/dalli_test.rb
flipper-dalli-0.27.0 test/adapters/dalli_test.rb
flipper-dalli-0.26.2 test/adapters/dalli_test.rb
flipper-dalli-0.26.1 test/adapters/dalli_test.rb