lib/minitest/distributed/reporters/distributed_progress_reporter.rb in minitest-distributed-0.2.3 vs lib/minitest/distributed/reporters/distributed_progress_reporter.rb in minitest-distributed-0.2.4

- old
+ new

@@ -1,9 +1,9 @@ # typed: strict # frozen_string_literal: true -require 'io/console' +require "io/console" module Minitest module Distributed module Reporters class DistributedPogressReporter < Minitest::Reporter @@ -23,11 +23,11 @@ @show_progress = T.let(options[:distributed].progress, T::Boolean) end sig { override.void } def start - Signal.trap('WINCH') { @window_line_width = nil } + Signal.trap("WINCH") { @window_line_width = nil } super end # Note: due to batching and parallel tests, we have no guarantee that `prerecord` # and `record` will be called in succession for the same test without calls to @@ -72,10 +72,10 @@ @show_progress end sig { void } def clear_current_line - io.print("\r" + (' ' * window_line_width) + "\r") + io.print("\r" + (" " * window_line_width) + "\r") end sig { returns(Integer) } def window_line_width @window_line_width ||= begin