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.



86
87
88
89
90
# File 'lib/dtest/result.rb', line 86

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#resultObject

Returns the value of attribute result.



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

def result
  @result
end