Class: Spec::Story::Runner::StoryParser::ThenState

Inherits:
State
  • Object
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, #given_scenario, #initialize, #remove_tag_from, #scenario, #story

Constructor Details

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

Instance Method Details

#one_more_of_the_same(line) ⇒ Object



231
232
233
# File 'lib/gems/rspec-1.1.12/lib/spec/story/runner/story_parser.rb', line 231

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

#other(line) ⇒ Object



239
240
241
# File 'lib/gems/rspec-1.1.12/lib/spec/story/runner/story_parser.rb', line 239

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

#outcome(line) ⇒ Object



235
236
237
# File 'lib/gems/rspec-1.1.12/lib/spec/story/runner/story_parser.rb', line 235

def outcome(line)
  @parser.create_then(remove_tag_from(:then ,line))
end