Sha256: e160007b1f856f697b1b34a9bcb86ea9f57236e620b265078a3b8826432d8646

Contents?: true

Size: 496 Bytes

Versions: 25

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true
class TestExecutionLog

  include Enumerable

  def initialize
    @log = []
  end

  def <<(action)
    @log << [action.class, action.input]
  end

  def log
    @log
  end

  def each(&block)
    @log.each(&block)
  end

  def size
    @log.size
  end

  def self.setup
    @run, @finalize = self.new, self.new
  end

  def self.teardown
    @run, @finalize = nil, nil
  end

  def self.run
    @run || []
  end

  def self.finalize
    @finalize || []
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
dynflow-1.8.2 test/support/test_execution_log.rb
dynflow-1.8.1 test/support/test_execution_log.rb
dynflow-1.8.0 test/support/test_execution_log.rb
dynflow-1.7.0 test/support/test_execution_log.rb
dynflow-1.6.11 test/support/test_execution_log.rb
dynflow-1.6.10 test/support/test_execution_log.rb
dynflow-1.6.8 test/support/test_execution_log.rb
dynflow-1.6.7 test/support/test_execution_log.rb
dynflow-1.6.6 test/support/test_execution_log.rb
dynflow-1.6.5 test/support/test_execution_log.rb
dynflow-1.6.4 test/support/test_execution_log.rb
dynflow-1.6.3 test/support/test_execution_log.rb
dynflow-1.6.2 test/support/test_execution_log.rb
dynflow-1.6.1 test/support/test_execution_log.rb
dynflow-1.4.9 test/support/test_execution_log.rb
dynflow-1.4.8 test/support/test_execution_log.rb
dynflow-1.5.0 test/support/test_execution_log.rb
dynflow-1.4.7 test/support/test_execution_log.rb
dynflow-1.4.6 test/support/test_execution_log.rb
dynflow-1.4.5 test/support/test_execution_log.rb