mirror of
https://github.com/puppetlabs/vmpooler-dns-gcp.git
synced 2026-01-26 02:58:42 -05:00
14 lines
280 B
Ruby
14 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'mock_redis'
|
|
|
|
def redis
|
|
@redis ||= MockRedis.new
|
|
@redis
|
|
end
|
|
|
|
# Mock an object which represents a Logger. This stops the proliferation
|
|
# of allow(logger).to .... expectations in tests.
|
|
class MockLogger
|
|
def log(_level, string); end
|
|
end
|