Sha256: 915424d0296b08fe6de115b6a1de060cfa176569cb4f674fcfb6a795ef3e694d

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

require "petitest/texts/base_text"

module Petitest
  module Texts
    class FailureMessageText < ::Petitest::Texts::BaseText
      # @return [Petitest::TestCase]
      attr_reader :test_case

      # @param test_case [Petitest::TestCase]
      def initialize(test_case:)
        @test_case = test_case
      end

      # @note Override
      def to_s
        colorize(test_case.failure_message, :failure)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
petitest-0.1.0 lib/petitest/texts/failure_message_text.rb