Class: Minitest::Flaked

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure) ⇒ Flaked

Returns a new instance of Flaked.



48
49
50
51
# File 'lib/minitest/queue.rb', line 48

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

Instance Attribute Details

#failureObject (readonly)

Returns the value of attribute failure.



46
47
48
# File 'lib/minitest/queue.rb', line 46

def failure
  @failure
end

Instance Method Details

#backtraceObject



57
58
59
# File 'lib/minitest/queue.rb', line 57

def backtrace
  failure.backtrace
end

#errorObject



61
62
63
# File 'lib/minitest/queue.rb', line 61

def error
  failure.error
end

#messageObject



65
66
67
# File 'lib/minitest/queue.rb', line 65

def message
  failure.message
end

#result_labelObject



53
54
55
# File 'lib/minitest/queue.rb', line 53

def result_label
  "Flaked"
end