Module: DTest::Test::BAResult

Included in:
CaseResult, GlobalResult, Result
Defined in:
lib/dtest/result.rb

Overview

before/after result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_failureObject

Returns the value of attribute after_failure.



28
29
30
# File 'lib/dtest/result.rb', line 28

def after_failure
  @after_failure
end

#before_failureObject

Returns the value of attribute before_failure.



28
29
30
# File 'lib/dtest/result.rb', line 28

def before_failure
  @before_failure
end

Instance Method Details

#ba_empty?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/dtest/result.rb', line 36

def ba_empty?
  @before_failure.empty? && @after_failure.empty?
end

#initializeObject



30
31
32
33
34
# File 'lib/dtest/result.rb', line 30

def initialize
  super
  @before_failure = Failure.new
  @after_failure = Failure.new
end