Sha256: 561f5ee482bbddb3bd4cc20dba2d65c66374f473218060149dabe05a77a4a965

Contents?: true

Size: 354 Bytes

Versions: 5

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module Formatter
  module Verbose
    def progress_lines
      label = "running: #{example_name}"
      label = label.slice(0, terminal_width - 3).concat('...') if label.size > terminal_width
      super.concat(
        [
          format("%-#{terminal_width}s", finished? ? '' : label)
        ]
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rainbow_formatter-0.2.0 lib/formatter/verbose.rb
rainbow_formatter-0.1.9 lib/formatter/verbose.rb
rainbow_formatter-0.1.8 lib/formatter/verbose.rb
rainbow_formatter-0.1.7 lib/formatter/verbose.rb
rainbow_formatter-0.1.5 lib/formatter/verbose.rb