mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
(maint) Don't clobber default redis database when running specs
This commit is contained in:
parent
652a56f4cd
commit
46815f26ac
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
def redis
|
def redis
|
||||||
@redis ||= Redis.new
|
unless @redis
|
||||||
|
@redis = Redis.new
|
||||||
|
@redis.select(15) # let's use the highest numbered database available in a default install
|
||||||
|
end
|
||||||
|
@redis
|
||||||
end
|
end
|
||||||
|
|
||||||
def expect_json(ok = true, http = 200)
|
def expect_json(ok = true, http = 200)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue