Class: Hiptest::Nodes::Tests

Inherits:
Node
  • Object
show all
Defined in:
lib/hiptest-publisher/nodes.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Node

#direct_children, #find_sub_nodes, #render

Constructor Details

#initialize(tests = []) ⇒ Tests

Returns a new instance of Tests.



300
301
302
303
304
# File 'lib/hiptest-publisher/nodes.rb', line 300

def initialize(tests = [])
  super()
  @children = {:tests => tests}
  tests.each {|test| test.parent = self}
end