Sha256: 455ea0a0ac932612da060f7bbb074c7388f8298c07f3f63ed6d0d1ad6c79cb0b
Contents?: true
Size: 540 Bytes
Versions: 40
Compression:
Stored size: 540 Bytes
Contents
module OrigenTesters::ATP module Processors # Makes sure every test node has an on_fail/set_result node, class AddSetResult < Processor def run(node) process(node) end def on_test(node) node = node.ensure_node_present(:on_fail) node.updated(nil, process_all(node)) end def on_on_fail(node) unless node.find(:continue) node = node.ensure_node_present(:set_result, 'fail') end node.updated(nil, process_all(node)) end end end end
Version data entries
40 entries across 40 versions & 1 rubygems