Sha256: 1df33e374d2ecf90dce249d9b28fd66761ca694142581ee662b96f6078b93ff7

Contents?: true

Size: 466 Bytes

Versions: 57

Compression:

Stored size: 466 Bytes

Contents

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

57 entries across 57 versions & 1 rubygems

Version Path
dynflow-1.3.0 test/support/test_execution_log.rb
dynflow-1.2.3 test/support/test_execution_log.rb
dynflow-1.2.2 test/support/test_execution_log.rb
dynflow-1.2.1 test/support/test_execution_log.rb
dynflow-1.2.0 test/support/test_execution_log.rb
dynflow-1.2.0.pre1 test/support/test_execution_log.rb
dynflow-1.1.6 test/support/test_execution_log.rb
dynflow-1.1.5 test/support/test_execution_log.rb
dynflow-1.1.4 test/support/test_execution_log.rb
dynflow-1.1.3 test/support/test_execution_log.rb
dynflow-1.1.2 test/support/test_execution_log.rb
dynflow-1.1.1 test/support/test_execution_log.rb
dynflow-1.1.0 test/support/test_execution_log.rb
dynflow-1.0.5 test/support/test_execution_log.rb
dynflow-1.0.4 test/support/test_execution_log.rb
dynflow-1.0.3 test/support/test_execution_log.rb
dynflow-1.0.2 test/support/test_execution_log.rb
dynflow-1.0.1 test/support/test_execution_log.rb
dynflow-1.0.0 test/support/test_execution_log.rb
dynflow-0.8.37 test/support/test_execution_log.rb