Merge pull request #452 from soylent/bugfix/redis-db

Fix redis db option
This commit is contained in:
Ernesto Tagwerker 2016-09-14 09:50:06 -04:00 committed by GitHub
commit de085dd5c6

View file

@ -25,7 +25,7 @@ module DatabaseCleaner
@connection ||= begin
if url == :default
::Redis.new
elsif db.class.is_a?(::Redis) # pass directly the connection
elsif db.is_a?(::Redis) # pass directly the connection
db
else
::Redis.new(:url => url)