Sha256: 03597997bceafc53cb67a93e20b1b5b08215bc4fbaceff48090685f2adc99014

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

module Minitest
  module Silence
    class BoxedOutputReporter < Minitest::Reporter
      def record(result)
        unless result.output.empty?
          io.puts(Minitest::Silence.boxed("Output from #{result.class_name}##{result.name}", result.output))
          io.puts
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
minitest-silence-0.2.4 lib/minitest/silence/boxed_output_reporter.rb
minitest-silence-0.2.3 lib/minitest/silence/boxed_output_reporter.rb
minitest-silence-0.2.2 lib/minitest/silence/boxed_output_reporter.rb
minitest-silence-0.2.1 lib/minitest/silence/boxed_output_reporter.rb
minitest-silence-0.2.0 lib/minitest/silence/boxed_output_reporter.rb
minitest-silence-0.1.0 lib/minitest/silence/boxed_output_reporter.rb