7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/test_notifier/rspec.rb', line 7
def dump_summary(duration, examples, failed, pending)
dump_summary_original(duration, examples, failed, pending)
begin
return if examples == 0
if failed > 0
title = TestNotifier::FAILURE_TITLE
image = TestNotifier::ERROR_IMAGE
else
title = TestNotifier::PASSED_TITLE
image = TestNotifier::PASSED_IMAGE
end
message = "#{examples} examples, #{failed} failed, #{pending} pending"
TestNotifier::notify(image, title, message)
rescue
end
end
|