Method: SpinnerFormatter#spin

Defined in:
lib/mspec/runner/formatters/spinner.rb

#spinObject



63
64
65
66
67
68
69
70
71
72
# File 'lib/mspec/runner/formatters/spinner.rb', line 63

def spin
  @which = (@which + 1) % Spins.size
  if @color
    print "\r[%s | %s | %s] \033[0;#{@fail_color}m%6dF \033[0;#{@error_color}m%6dE\033[0m" %
        [Spins[@which], percentage, etr, @counter.failures, @counter.errors]
  else
    print "\r[%s | %s | %s] %6dF %6dE" %
        [Spins[@which], percentage, etr, @counter.failures, @counter.errors]
  end
end