/usr/lib/ruby/vendor_ruby/rspec/core/formatters/progress_formatter.rb is in ruby-rspec-core 3.7.0c1e0m0s1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | RSpec::Support.require_rspec_core "formatters/base_text_formatter"
RSpec::Support.require_rspec_core "formatters/console_codes"
module RSpec
module Core
module Formatters
# @private
class ProgressFormatter < BaseTextFormatter
Formatters.register self, :example_passed, :example_pending, :example_failed, :start_dump
def example_passed(_notification)
output.print ConsoleCodes.wrap('.', :success)
end
def example_pending(_notification)
output.print ConsoleCodes.wrap('*', :pending)
end
def example_failed(_notification)
output.print ConsoleCodes.wrap('F', :failure)
end
def start_dump(_notification)
output.puts
end
end
end
end
end
|