Class: MinitestBender::States::Failing

Inherits:
Base
  • Object
show all
Defined in:
lib/minitest-bender/states/failing.rb

Constant Summary collapse

COLOR =
:fail
LABEL =
'FAILED'
GROUP_LABEL =
'FAILURES'
ICON =
''

Instance Attribute Summary

Attributes inherited from Base

#results

Instance Method Summary collapse

Methods inherited from Base

#add_result, #color, #colored_icon, #colored_icon_with_context_count, #colored_icon_with_count, #detail_lines, #detail_lines_without_header, #formatted_group_label, #formatted_label, #initialize, #print_details, #test_location

Constructor Details

This class inherits a constructor from MinitestBender::States::Base

Instance Method Details

#formatted_message(result) ⇒ Object



12
13
14
# File 'lib/minitest-bender/states/failing.rb', line 12

def formatted_message(result)
  colored(location(result))
end

#summary_messageObject



16
17
18
19
# File 'lib/minitest-bender/states/failing.rb', line 16

def summary_message
  return '' if results.empty?
  colored("#{results.size} failed")
end