method
run
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Story::Runner::PlainTextStoryRunner
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
run(story_runner=Spec::Story::Runner.story_runner)
public
Hide source
# 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