diff options
Diffstat (limited to 'test/th_mauve.rb')
-rw-r--r-- | test/th_mauve.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/th_mauve.rb b/test/th_mauve.rb index ce29e11..99eaaed 100644 --- a/test/th_mauve.rb +++ b/test/th_mauve.rb @@ -55,6 +55,7 @@ module Mauve def setup reset_all_singletons + reset_mauve_configuration setup_logger setup_time end @@ -108,6 +109,10 @@ module Mauve Timecop.return end + def reset_mauve_configuration + Mauve::Configuration.current = Mauve::Configuration.new + end + def reset_all_singletons Mauve.constants.collect{|const| Mauve.const_get(const)}.each do |klass| next unless klass.respond_to?(:instance) |