Merge pull request #110 from 5apps/bugfix/redis_db_in_specs

Use all keys from the config file's redis section in the specs
This commit is contained in:
Basti 2018-03-08 14:04:34 +02:00 committed by GitHub
commit c11310381a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ alias context describe
if app.settings.respond_to? :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
def purge_redis