Sha256: 4a087e5ed3889e2f4f04e353cb761aa3b841e1649a1f8430c295a79fadc670aa

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

require 'redis'
require 'spec/support/uses_dotenv'
require 'routemaster/config'

module RspecSupportUsesRedis
  def uses_redis
    uses_dotenv

    let(:redis) { Routemaster::Config.drain_redis }
    before { Routemaster::Config.cache_redis.flushdb }
    before { Routemaster::Config.drain_redis.flushdb }
  end
end

RSpec.configure { |c| c.extend RspecSupportUsesRedis }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
routemaster-drain-2.3.0 spec/support/uses_redis.rb
routemaster-drain-2.2.2 spec/support/uses_redis.rb
routemaster-drain-2.0.0 spec/support/uses_redis.rb
routemaster-drain-1.1.0 spec/support/uses_redis.rb
routemaster-drain-1.0.5 spec/support/uses_redis.rb
routemaster-drain-1.0.4 spec/support/uses_redis.rb
routemaster-drain-1.0.3 spec/support/uses_redis.rb
routemaster-drain-1.0.2 spec/support/uses_redis.rb
routemaster-drain-1.0.1 spec/support/uses_redis.rb
routemaster-drain-1.0.0 spec/support/uses_redis.rb