search for: story_name

Displaying 1 result from an estimated 1 matches for "story_name".

2007 Dec 29
5
./script/story command
...} paths.map! { |path| path.gsub(/#{STORIES_PATH}\//, "") } end def run_story_files(stories) clean_story_paths(stories).each do |story| setup_and_run_story(File.readlines("#{STORIES_PATH}/#{story}.story"), story) end end def setup_and_run_story(lines, story_name = nil) require HELPER_PATH steps = steps_for_story(lines, story_name) steps.reject! { |step| !File.exist?("#{STEP_MATCHERS_PATH}/#{step}.rb") } steps.each { |step| require "#{STEP_MATCHERS_PATH}/#{step}" } run_story(lines, steps) end def steps_for_s...