app/models/revision_status_calculator.rb in sw2at-ui-0.0.2 vs app/models/revision_status_calculator.rb in sw2at-ui-0.0.3
- old
+ new
@@ -21,11 +21,10 @@
private
def calculate_and_modify_thread_status(thread)
init_total_failed(thread)
thread.total_runned = thread.total_examples.to_i - thread.pending_examples.to_i
-
thread.status = thread_status(thread)
thread.status
end
def thread_status(thread)
@@ -54,9 +53,12 @@
thread.failed_examples = thread.total_failed = failed_tests
end
thread.in_progress = true
thread.total_failed = failed_tests
else
+ if failed_tests > 0 && thread.failed_examples == 0
+ thread.failed_examples = failed_tests
+ end
thread.total_failed = thread.failed_examples
end
end
STATUSES = {
\ No newline at end of file