Class: CIAT::Feedback::ReturnStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/ciat/feedback/return_status.rb

Instance Method Summary collapse

Instance Method Details

#post_tests(suite) ⇒ Object



8
9
10
11
12
# File 'lib/ciat/feedback/return_status.rb', line 8

def post_tests(suite)
  if failure?
    fail "CIAT tests unsuccessful"
  end
end

#pre_tests(suite) ⇒ Object



4
5
6
# File 'lib/ciat/feedback/return_status.rb', line 4

def pre_tests(suite)
  @failure = false
end

#report_subresult(processor) ⇒ Object



14
15
16
# File 'lib/ciat/feedback/return_status.rb', line 14

def report_subresult(processor)
  @failure ||= processor.light.yellow? || processor.light.red?
end