class TddDeploy::TestBase
TddDeploy::TestBase
¶ ↑
provides a base class for host and site tests.
Attributes
children[W]
Public Class Methods
children()
click to toggle source
# File lib/tdd_deploy/test_base.rb, line 18 def children @children ||= [] end
flush_children_methods()
click to toggle source
removes all methods from defined children.
# File lib/tdd_deploy/test_base.rb, line 23 def flush_children_methods self.children.each do |child| child.instance_methods(false).each do |meth| child.send :remove_method, meth end end end
inherited(child)
click to toggle source
# File lib/tdd_deploy/test_base.rb, line 31 def inherited(child) self.children ||= [] self.children << child unless self.children.include? child end
Public Instance Methods
initialze()
click to toggle source
Calls superclass method
# File lib/tdd_deploy/test_base.rb, line 9 def initialze super end