From ff7fcc6a68fc804a8db3f04ee0e7b8987ae5a1b6 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Tue, 12 Feb 2019 13:45:48 -0700 Subject: [PATCH] Utility method for getting default config --- src/spectator/config_builder.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/spectator/config_builder.cr b/src/spectator/config_builder.cr index 6bced3b..8b7a6e3 100644 --- a/src/spectator/config_builder.cr +++ b/src/spectator/config_builder.cr @@ -3,6 +3,11 @@ module Spectator # Use the setters in this class to incrementally build a configuration. # Then call `#build` to create the final configuration. class ConfigBuilder + # Creates a default configuration. + def self.default + new.build + end + @formatter : Formatters::Formatter? = nil # Sets the formatter to use for reporting test progress and results.