Use all keys from the config file's redis section in the specs
You can pass a db index, and the code was using it, but not the specs
This commit is contained in:
@@ -35,7 +35,7 @@ alias context describe
|
|||||||
|
|
||||||
if app.settings.respond_to? :redis
|
if app.settings.respond_to? :redis
|
||||||
def redis
|
def redis
|
||||||
@redis ||= Redis.new(host: app.settings.redis["host"], port: app.settings.redis["port"])
|
@redis ||= Redis.new(app.settings.redis.symbolize_keys)
|
||||||
end
|
end
|
||||||
|
|
||||||
def purge_redis
|
def purge_redis
|
||||||
|
|||||||
Reference in New Issue
Block a user