Class: Luna::RSpec::Formatters::Emoji
- Inherits:
-
RSpec::Core::Formatters::BaseTextFormatter
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- Luna::RSpec::Formatters::Emoji
- Includes:
- Profile
- Defined in:
- lib/luna/rspec/formatters/emoji.rb
Constant Summary
Constants included from Profile
Profile::EXAMPLES, Profile::EXAMPLES_HEADER, Profile::GROUPS, Profile::GROUPS_HEADER
Instance Method Summary collapse
-
#allowed_cols ⇒ Object
– Note: If the terminal is too small we just let it go.
-
#start(_) ⇒ Object
– Start.
-
#start_dump(_) ⇒ Object
– End.
Methods included from Profile
Instance Method Details
#allowed_cols ⇒ Object
– 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 |