Sha256: 23d660de12a5f9e13a0c8d519a62d8500d9b69be6a77c3d4c0ea7a5a64bbeec0
Contents?: true
Size: 395 Bytes
Versions: 37
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true class MockConfigClient def initialize(config_values = {}) @config_values = config_values end def get(key, default = nil) @config_values.fetch(key, default) end def get_config(key) PrefabProto::Config.new(value: @config_values[key], key: key) end def mock_this_config(key, config_value) @config_values[key] = config_value end end
Version data entries
37 entries across 37 versions & 1 rubygems