search for: plaintextstoryrunner

Displaying 2 results from an estimated 2 matches for "plaintextstoryrunner".

2007 Oct 24
3
changes to Story Runner steps
...ve bravely begun to experiment with the 2 day-old plain text story runner and definable groups of steps. For those who fit that bill, I just committed a few changes that will require you to make changes to your code. The StepMatchers class is now the StepGroup class. The step_matchers methods on PlainTextStoryRunner and StepGroup is now just steps. So instead of defining a group like this: # old - no longer supported matchers = StepMatchers.new do step_matchers do |add| add.given(...) {...} end end # new steps = StepGroup.new do steps do |add| add.given(...) {...} end end And actually, I'...
2007 Oct 23
10
How is everyone structuring stories?
...d tried this: ./lib ./blah ./spec ./blah ./stories But it breaks autotest, so I moved stories parallel to lib and spec. Also what about suffixes? I have adopted "xyz_story_spec.rb", and "xyz.story" for the time being, with the line runner = Spec::Story::Runner::PlainTextStoryRunner.new( File.expand_path(__FILE__).gsub("_story_spec.rb", ".story") ) in the former. Simple to make TextMate recognise the RSpec files (even though they aren''t, as such) and to give an extension to the stories. Ashley -- blog @ http:...