Sha256: 891bce4bbe757610760743ea6954de9153f0e1483fd4180629a57daf3f349953

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require_relative 'message'

module Torkify::Event

  # Event used for changes in test status.
  #
  # Types:
  #
  #  - pass_now_fail
  #  - fail_now_pass
  #
  # Includes the actual fail/pass event as a separate object.
  class StatusChangeEvent < Struct.new(:type, :file, :event)
    include Message

    def to_s
      "#{type.upcase.gsub('_',' ')} #{file}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
torkify-0.0.3 lib/torkify/event/status_change_event.rb
torkify-0.0.2 lib/torkify/event/status_change_event.rb