Class: DTest::Test::Result

Inherits:
Failure
  • Object
show all
Includes:
Stopwatch, BAResult
Defined in:
lib/dtest/result.rb

Constant Summary collapse

PASS =
'Pass'
FAIL =
'Fail'
UNTEST =
'Untested'

Instance Attribute Summary collapse

Attributes included from BAResult

#after_failure, #before_failure

Attributes included from Stopwatch

#finish, #start

Instance Method Summary collapse

Methods included from BAResult

#ba_empty?

Methods included from Stopwatch

#elapsed, #timer

Methods inherited from Failure

#<<, #empty?, #failure

Constructor Details

#initialize(name) ⇒ Result

Returns a new instance of Result.



84
85
86
87
88
# File 'lib/dtest/result.rb', line 84

def initialize(name)
  super()
  @name = name
  @result = FAIL
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



82
83
84
# File 'lib/dtest/result.rb', line 82

def name
  @name
end

#resultObject

Returns the value of attribute result.



82
83
84
# File 'lib/dtest/result.rb', line 82

def result
  @result
end