Class: Luna::Formatters::Emoji

Inherits:
RSpec::Core::Formatters::BaseTextFormatter
  • Object
show all
Includes:
Profiling
Defined in:
lib/luna/rspec/formatters/emoji.rb

Direct Known Subclasses

Cats, Checks, Hearts, Smiles

Constant Summary

Constants included from Profiling

Profiling::EXP, Profiling::EXP_HEADER, Profiling::GROUPS, Profiling::GROUPS_HEADER

Instance Method Summary collapse

Methods included from Profiling

#dump_profile, #helpers

Instance Method Details

#allowed_colsObject

– Note: If the terminal is too small we just let it go. The total columns we allow. –



28
29
30
# File 'lib/luna/rspec/formatters/emoji.rb', line 28

def allowed_cols
  @cols ||= (IO.console.winsize.last / 6)
end

#start(_) ⇒ Object

– Start. –



35
36
37
38
# File 'lib/luna/rspec/formatters/emoji.rb', line 35

def start(_)
  @lines = 0
  output.puts
end

#start_dump(_) ⇒ Object

– End. –



43
44
45
# File 'lib/luna/rspec/formatters/emoji.rb', line 43

def start_dump(_)
  output.puts
end