Method: Nukumber::Reporter::Html#print_step
- Defined in:
- lib/nukumber/reporter/html.rb
#print_step(step, status) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/nukumber/reporter/html.rb', line 92 def print_step(step, status) node_step = node("div", @node_element, {:class => "step #{status.to_s}"}) node("p", node_step, {}, "#{step.keyword}#{step.name}") unless step.args.empty? node_table = Nokogiri::XML::Node.new "table", @doc (0..step.args.row_count).each do |i| add_row(step.args, i - 1, node_table) end node_step.add_child node_table end @node_element['class'] = "element #{status.to_s}" end |