Sha256: 3ed959abdd2e77f007e300a5c42f43ccd5c25d464b152f8cb9a2464f014e78d9

Contents?: true

Size: 391 Bytes

Versions: 31

Compression:

Stored size: 391 Bytes

Contents

require 'helper'
require 'flipper/adapters/redis'
require 'flipper/spec/shared_adapter_specs'

RSpec.describe Flipper::Adapters::Redis do
  let(:client) do
    options = {}

    options[:url] = ENV['REDIS_URL'] if ENV['REDIS_URL']

    Redis.new(options)
  end

  subject { described_class.new(client) }

  before do
    client.flushdb
  end

  it_should_behave_like 'a flipper adapter'
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
flipper-redis-0.20.4 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.3 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.0.beta3 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.0.beta2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.20.0.beta1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.19.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.19.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.18.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.17.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.17.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.16.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.16.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.16.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.15.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.14.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.13.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.13.0.beta1 spec/flipper/adapters/redis_spec.rb