Class: Spec::Story::Runner::StoryParser::ScenarioState

Inherits:
State
  • Object
show all
Defined in:
lib/spec/story/runner/story_parser.rb

Instance Method Summary collapse

Methods inherited from State

#comment, #eof, #event, #given, #given_scenario, #initialize, #other, #outcome, #remove_tag_from, #story

Constructor Details

This class inherits a constructor from Spec::Story::Runner::StoryParser::State

Instance Method Details

#one_more_of_the_same(line) ⇒ Object

Raises:



193
194
195
# File 'lib/spec/story/runner/story_parser.rb', line 193

def one_more_of_the_same(line)
  raise IllegalStepError.new("Scenario", "And")
end

#scenario(line) ⇒ Object



197
198
199
# File 'lib/spec/story/runner/story_parser.rb', line 197

def scenario(line)
  @parser.create_scenario(line)
end