Sha256: 39456c58420cee329de9c52e8ae56885704cf84ac8ba5c748207d11c2c3198c9

Contents?: true

Size: 384 Bytes

Versions: 31

Compression:

Stored size: 384 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.redis.flushdb }
    before { Routemaster::Config.drain_redis.redis.flushdb }
  end
end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
routemaster-drain-3.7.1 spec/support/uses_redis.rb
routemaster-drain-3.7.0 spec/support/uses_redis.rb
routemaster-drain-3.6.8 spec/support/uses_redis.rb
routemaster-drain-3.6.7 spec/support/uses_redis.rb
routemaster-drain-3.6.6 spec/support/uses_redis.rb
routemaster-drain-3.6.5 spec/support/uses_redis.rb
routemaster-drain-3.6.4 spec/support/uses_redis.rb
routemaster-drain-3.6.3 spec/support/uses_redis.rb
routemaster-drain-3.6.2 spec/support/uses_redis.rb
routemaster-drain-3.6.1 spec/support/uses_redis.rb
routemaster-drain-3.6.0 spec/support/uses_redis.rb
routemaster-drain-3.5.1 spec/support/uses_redis.rb
routemaster-drain-3.5.0 spec/support/uses_redis.rb
routemaster-drain-3.4.0 spec/support/uses_redis.rb
routemaster-drain-3.3.0 spec/support/uses_redis.rb
routemaster-drain-3.2.0 spec/support/uses_redis.rb
routemaster-drain-3.1.0 spec/support/uses_redis.rb
routemaster-drain-3.0.3 spec/support/uses_redis.rb
routemaster-drain-3.0.2 spec/support/uses_redis.rb
routemaster-drain-3.0.1 spec/support/uses_redis.rb