Class: Luna::Formatters::Hearts
- Inherits:
-
Emoji
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- Emoji
- Luna::Formatters::Hearts
show all
- Defined in:
- lib/luna/rspec/formatters/hearts.rb
Constant Summary
Constants included
from Profiling
Profiling::EXP, Profiling::EXP_HEADER, Profiling::GROUPS, Profiling::GROUPS_HEADER
Instance Method Summary
collapse
Methods inherited from Emoji
#allowed_cols, #start, #start_dump
Methods included from Profiling
#dump_profile, #helpers
Instance Method Details
#example_failed(_) ⇒ Object
18
19
20
21
22
23
|
# File 'lib/luna/rspec/formatters/hearts.rb', line 18
def example_failed(_)
newline_or_addup
output.print ' ', failure_color(
"\u1F494"
)
end
|
#example_passed(_) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/luna/rspec/formatters/hearts.rb', line 11
def example_passed(_)
newline_or_addup
output.print ' ', success_color(
"\u2764"
)
end
|
#example_pending(_) ⇒ Object
25
26
27
28
29
30
|
# File 'lib/luna/rspec/formatters/hearts.rb', line 25
def example_pending(_)
newline_or_addup
output.print ' ', pending_color(
"\u2764"
)
end
|