lib/new_relic/agent/configuration.rb in newrelic_rpm-3.4.2 vs lib/new_relic/agent/configuration.rb in newrelic_rpm-3.4.2.1
- old
+ new
@@ -7,9 +7,14 @@
# access to the config manager
module Instance
def config
@@manager ||= Manager.new
end
+
+ # for testing
+ def reset_config
+ @@manager = Manager.new
+ end
end
class DottedHash < ::Hash
def initialize(hash)
self.merge!(dot_flattened(hash))