diff --git a/lib/guard/ui.rb b/lib/guard/ui.rb index 197b29d..2127370 100644 --- a/lib/guard/ui.rb +++ b/lib/guard/ui.rb @@ -9,12 +9,14 @@ module Guard end end - def error(message) + def error(message, options = {}) + reset_line if options[:reset] puts "ERROR: #{message}" end - def debug(message) + def debug(message, options = {}) unless ENV["GUARD_ENV"] == "test" + reset_line if options[:reset] puts "DEBUG: #{message}" if ::Guard.options && ::Guard.options[:debug] end end