Class: Luna::RSpec::Formatters::Emoji

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

Direct Known Subclasses

Checks, Hearts, Smilies

Constant Summary

Constants included from Profile

Profile::EXAMPLES, Profile::EXAMPLES_HEADER, Profile::GROUPS, Profile::GROUPS_HEADER

Instance Method Summary collapse

Methods included from Profile

#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. –



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

def allowed_cols
  @cols ||= begin
    (val = IO.console.winsize.last / 4) >= 24 ? val.floor : Float::INFINITY
  end
end

#start(_) ⇒ Object

– Start. –



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

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

#start_dump(_) ⇒ Object

– End. –



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

def start_dump(_)
  output.puts
end