From fac033cff5f840968365161585b1debf495fc473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Thu, 8 Mar 2018 12:59:03 +0100 Subject: [PATCH] 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 --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dfc955f..8c46f3a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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