Class: Spec::Story::Runner::StoryParser::GivenState
- Inherits:
-
State
- Object
- State
- Spec::Story::Runner::StoryParser::GivenState
show all
- Defined in:
- lib/gems/rspec-1.1.12/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
Instance Method Details
#given(line) ⇒ Object
207
208
209
|
# File 'lib/gems/rspec-1.1.12/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/gems/rspec-1.1.12/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/gems/rspec-1.1.12/lib/spec/story/runner/story_parser.rb', line 211
def other(line)
@parser.add_to_last(line)
end
|