Method: Oktest::SpecLeaf#initialize
- Defined in:
- lib/oktest.rb
#initialize(parent, desc, tag: nil, fixture: nil, location: nil, &block) ⇒ SpecLeaf
Returns a new instance of SpecLeaf.
1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/oktest.rb', line 1156 def initialize(parent, desc, tag: nil, fixture: nil, location: nil, &block) #@parent = parent # not keep parent node to avoid recursive reference @desc = desc @tag = tag @fixture = fixture @location = location # necessary when raising fixture not found error @block = block parent.add_child(self) if parent end |