method
run
1.1.12 -
Show latest stable
- Class:
Spec::Story::Runner::PlainTextStoryRunner
run(story_runner=Spec::Story::Runner.story_runner)public
No documentation available.
# File lib/spec/story/runner/plain_text_story_runner.rb, line 29
def run(story_runner=Spec::Story::Runner.story_runner)
raise "You must set a path to the file with the story. See the RDoc." if @story_file.nil?
mediator = Spec::Story::Runner::StoryMediator.new(steps, story_runner, @options)
parser = Spec::Story::Runner::StoryParser.new(mediator)
story_text = File.read(@story_file)
parser.parse(story_text.split("\n"))
mediator.run_stories
end