Class: MinitestBender::States::Passing
- Inherits:
-
Base
- Object
- Base
- MinitestBender::States::Passing
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
Instance Method Details
#detail_lines(_result) ⇒ Object
20
21
22
|
# File 'lib/minitest-bender/states/passing.rb', line 20
def detail_lines(_result)
[]
end
|
24
25
26
|
# File 'lib/minitest-bender/states/passing.rb', line 24
def (_result)
[]
end
|
12
13
14
|
# File 'lib/minitest-bender/states/passing.rb', line 12
def formatted_message(_result)
''
end
|
#print_details(_io) ⇒ Object
16
17
18
|
# File 'lib/minitest-bender/states/passing.rb', line 16
def print_details(_io)
:no_details
end
|
#summary_message ⇒ Object
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
|