mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
Fixed resolver_test.rb by making Inspec::Config.cached a lazy accessor.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
885e4f6c71
commit
0e77af3a77
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ module Inspec
|
|||
# Use this to get a cached version of the config. This prevents you from
|
||||
# being required to pass it around everywhere.
|
||||
def self.cached
|
||||
@cached_config
|
||||
@cached_config ||= {}
|
||||
end
|
||||
|
||||
def self.cached=(cfg)
|
||||
|
|
Loading…
Reference in a new issue