Class: MinitestBender::States::Passing

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

Constant Summary collapse

COLOR =
:pass
LABEL =
'PASSED'
GROUP_LABEL =
'PASSING'
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, #formatted_group_label, #formatted_label, #initialize, #test_location

Constructor Details

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

Instance Method Details

#detail_lines(_result) ⇒ Object



20
21
22
# File 'lib/minitest-bender/states/passing.rb', line 20

def detail_lines(_result)
  []
end

#detail_lines_without_header(_result) ⇒ Object



24
25
26
# File 'lib/minitest-bender/states/passing.rb', line 24

def detail_lines_without_header(_result)
  []
end

#formatted_message(_result) ⇒ Object



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

def formatted_message(_result)
  ''
end


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

def print_details(_io)
  :no_details
end

#summary_messageObject



28
29
30
31
# File 'lib/minitest-bender/states/passing.rb', line 28

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