Class: Spec::Story::Runner::StoryParser::WhenState
- Inherits:
-
State
- Object
- State
- Spec::Story::Runner::StoryParser::WhenState
show all
- Defined in:
- lib/spec/story/runner/story_parser.rb
Instance Method Summary
collapse
Methods inherited from State
#comment, #eof, #given, #given_scenario, #initialize, #outcome, #remove_tag_from, #scenario, #story
Instance Method Details
#event(line) ⇒ Object
221
222
223
|
# File 'lib/spec/story/runner/story_parser.rb', line 221
def event(line)
@parser.create_when(remove_tag_from(:when ,line))
end
|
#one_more_of_the_same(line) ⇒ Object
217
218
219
|
# File 'lib/spec/story/runner/story_parser.rb', line 217
def one_more_of_the_same(line)
@parser.create_when(remove_tag_from(:and ,line))
end
|
#other(line) ⇒ Object
225
226
227
|
# File 'lib/spec/story/runner/story_parser.rb', line 225
def other(line)
@parser.add_to_last(line)
end
|