diff --git a/lib/yabeda.rb b/lib/yabeda.rb index 9843d38..b6c19a0 100644 --- a/lib/yabeda.rb +++ b/lib/yabeda.rb @@ -130,7 +130,6 @@ def debug! true end - # rubocop: enable Metrics/MethodLength # Forget all the configuration. # For testing purposes as it doesn't rollback changes in adapters. @@ -144,9 +143,11 @@ def reset! @metrics = nil collectors.clear configurators.clear + @config = Config.new instance_variable_set(:@configured_by, nil) instance_variable_set(:@debug_was_enabled_by, nil) end + # rubocop: enable Metrics/MethodLength end end