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.12.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.12.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.12.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.rc1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta9 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta8 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta7 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta6 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta5 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.11.0.beta4 spec/flipper/adapters/redis_spec.rb