Class: Spec::Story::Runner::StoryParser::GivenState

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_scenario, #initialize, #outcome, #remove_tag_from, #scenario, #story

Constructor Details

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

Instance Method Details

#given(line) ⇒ Object



207
208
209
# File 'lib/spec/story/runner/story_parser.rb', line 207

def given(line)
  @parser.create_given(remove_tag_from(:given, line))
end

#one_more_of_the_same(line) ⇒ Object



203
204
205
# File 'lib/spec/story/runner/story_parser.rb', line 203

def one_more_of_the_same(line)
  @parser.create_given(remove_tag_from(:and, line))
end

#other(line) ⇒ Object



211
212
213
# File 'lib/spec/story/runner/story_parser.rb', line 211

def other(line)
  @parser.add_to_last(line)
end