Sha256: 8cc6befc77034cb66113f11032337897bafd967636ee5c62bc4cdfbbce10cbce

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

require "time"

module Petitest
  module SubscriberConcerns
    module TimeConcern
      # @return [Time, nil]
      attr_accessor :finished_at

      # @return [Time, nil]
      attr_accessor :started_at

      # @note Override
      def after_running_test_cases(test_cases)
        super
        self.finished_at = ::Time.now
      end

      # @note Override
      def before_running_test_cases(test_cases)
        super
        self.started_at = ::Time.now
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
petitest-0.2.1 lib/petitest/subscriber_concerns/time_concern.rb
petitest-0.2.0 lib/petitest/subscriber_concerns/time_concern.rb
petitest-0.1.3 lib/petitest/subscriber_concerns/time_concern.rb
petitest-0.1.2 lib/petitest/subscriber_concerns/time_concern.rb