Sha256: 54a27277c9ceb712c5fdb4c568f031f42962a55dbfb64a6eaff1e570e0f88082

Contents?: true

Size: 414 Bytes

Versions: 12

Compression:

Stored size: 414 Bytes

Contents

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

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

    if ENV['BOXEN_REDIS_URL']
      options[:url] = ENV['BOXEN_REDIS_URL']
    end

    Redis.new(options)
  }

  subject { described_class.new(client) }

  before do
    client.flushdb
  end

  it_should_behave_like 'a flipper adapter'
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flipper-redis-0.10.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.10.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.10.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.9.2 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.9.1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.9.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.9.0.beta1 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.8.0 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.7.5 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.7.4 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.7.3 spec/flipper/adapters/redis_spec.rb
flipper-redis-0.7.2 spec/flipper/adapters/redis_spec.rb