Class: Minitest::Requeue

Inherits:
Skip
  • Object
show all
Defined in:
lib/minitest/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure) ⇒ Requeue

Returns a new instance of Requeue.



23
24
25
26
# File 'lib/minitest/queue.rb', line 23

def initialize(failure)
  super()
  @failure = failure
end

Instance Attribute Details

#failureObject (readonly)

Returns the value of attribute failure.



21
22
23
# File 'lib/minitest/queue.rb', line 21

def failure
  @failure
end

Instance Method Details

#backtraceObject



32
33
34
# File 'lib/minitest/queue.rb', line 32

def backtrace
  failure.backtrace
end

#errorObject



36
37
38
# File 'lib/minitest/queue.rb', line 36

def error
  failure.error
end

#messageObject



40
41
42
# File 'lib/minitest/queue.rb', line 40

def message
  failure.message
end

#result_labelObject



28
29
30
# File 'lib/minitest/queue.rb', line 28

def result_label
  "Requeued"
end