Sha256: 4bb06c4d727b362141df42bb0b21de5430e0d0c7f1a83fa23599fc8290644531

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module SpecTracker
  module Reporter
    class BaseUIMapper
      include StatusUI

      def map(_)
        raise Error.new('override me!')
      end

      protected

      def status_to_ui(status)
        if status.success?
          SUCCESS_EMOJI
        elsif status.failure?
          FAILURE_EMOJI
        elsif status.skipped?
          SKIPPED_EMOJI
        elsif status.missing?
          MISSING_EMOJI
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spec_tracker-1.2.4 lib/spec_tracker/reporter/base_ui_mapper.rb
spec_tracker-1.2.3 lib/spec_tracker/reporter/base_ui_mapper.rb
spec_tracker-1.2.2 lib/spec_tracker/reporter/base_ui_mapper.rb
spec_tracker-1.2.1 lib/spec_tracker/reporter/base_ui_mapper.rb
spec_tracker-1.2.0 lib/spec_tracker/reporter/base_ui_mapper.rb