Class: Cucumber::Tree::GivenScenario

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/cucumber-0.1.15/lib/cucumber/tree/given_scenario.rb

Instance Method Summary collapse

Constructor Details

#initialize(scenario, name, line) ⇒ GivenScenario

Returns a new instance of GivenScenario.



4
5
6
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/given_scenario.rb', line 4

def initialize(scenario, name, line)
  @scenario, @name, @line = scenario, name, line
end

Instance Method Details

#stepsObject



8
9
10
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree/given_scenario.rb', line 8

def steps
  @scenario.given_scenario_steps(@name)
end