Module: Guard::Test::Notifier

Defined in:
lib/guard/test/notifier.rb

Class Method Summary collapse

Class Method Details

.notify(result, elapsed_time) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/guard/test/notifier.rb', line 8

def notify(result, elapsed_time)
  Compat::UI.notify(
    summary(result) + "\n\n" + duration(elapsed_time),
    title: "Test::Unit results",
    image: result.passed? ? :success : :failed
  )
end