Module: Cucumber::TreetopParser::Feature::Scenario2
- Defined in:
- lib/cucumber/treetop_parser/feature_fi.rb
Instance Method Summary collapse
Instance Method Details
#compile(feature) ⇒ Object
293 294 295 296 297 298 299 300 |
# File 'lib/cucumber/treetop_parser/feature_fi.rb', line 293 def compile(feature) line = input.line_of(interval.first) scenario = feature.add_scenario(name.text_value.strip, line) steps.step_sequence.compile(scenario) if steps.respond_to?(:step_sequence) # TODO - GET RID OF THIS last_scenario NASTINESS # Use a better datastructure, like a linked list... Feature.last_scenario = scenario end |