Class: Cucumber::Tree::ScenarioOutline

Inherits:
Scenario show all
Defined in:
lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb

Constant Summary

Constants inherited from Scenario

Cucumber::Tree::Scenario::INDENT, Cucumber::Tree::Scenario::MIN_PADDING

Instance Attribute Summary

Attributes inherited from Scenario

#line, #name, #table_column_widths, #table_header

Attributes inherited from BaseScenario

#feature

Instance Method Summary collapse

Methods inherited from Scenario

#And, #Given, #Then, #When, #create_given_scenario, #given_scenario_steps, #initialize, #max_line_length, #max_step_length, #padding_length, #row?, #sibling_named, #step_padding_length, #steps, #update_table_column_widths

Methods inherited from BaseScenario

#accept, #at_line?, #file, #pending?, #previous_step

Constructor Details

This class inherits a constructor from Cucumber::Tree::Scenario

Instance Method Details

#create_step(keyword, name, line) ⇒ Object



147
148
149
150
151
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb', line 147

def create_step(keyword, name, line)
  step = StepOutline.new(self, keyword, name, line)
  @steps_and_given_scenarios << step
  step
end

#lengthObject



143
144
145
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb', line 143

def length
  @length ||= Cucumber.language['scenario_outline'].jlength + 2 + (@name.nil? ? 0 : @name.jlength)
end

#outline?Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb', line 139

def outline?
  true
end