lib/guard/ui.rb in guard-0.1.0.beta.1 vs lib/guard/ui.rb in guard-0.1.0.beta.2
- old
+ new
@@ -3,10 +3,10 @@
class << self
def info(message, options = {})
unless ENV["GUARD_ENV"] == "test"
reset_line if options[:reset]
- clear if options.key?(:clear) ? options[:clear] : ::Guard.options[:clear]
+ clear if options.key?(:clear) ? options[:clear] : (::Guard.options && ::Guard.options[:clear])
puts reset_color(message) if message != ''
end
end
def error(message)