« Return to Thread: Getting Started with Story Runner
For a total noob you're right on the money!
Your code looks correct. My interpretation of the workflow that derives from this tool is that you write a high level story like you have here, run it, and let it tell you what to do next. The stack trace is telling you that you need an Account class. So now you would drop down to the object level and write a spec for Account (this is a Rails Story, so you'd write a model spec). Once you have that passing, you might come back up to the story level and re-run it, at which point it might tell you that it doesn't know about the balance() method on your account object; this would depend on how detailed you got in your model spec. I'm a total noob with this tool as well, so others on this list might have different insights;
You ping-pong at the granularity of a scenario. In other words, you get the scenario failing and then work inwards until you have all the moving parts to make the scenario work (and no more). Then you ping-pong up to the next scenario and work inwards again. It's more like a pulse than a ping-pong.I'd be interested in hearing other perspectives on how detailed you'd get the first time you drill down to the object level: would you spec out the object completely as specified at the high level and then verify that it satisfies the story, or would you keep ping-ponging back and forth between the two levels?
Cheers,James
On 9/21/07, Evan David Light evan@... wrote:There are also a couple of examples buried in the trunk underexamples/story/game-of-life/behaviour/storiesOn Sep 20, 2007, at 10:13 AM, Andrew WC Brown wrote: I'm guessing their isn't a generator for stories yet? ./script/generate story add_person On 9/20/07, James Hughes < hughes.james@...> wrote:On 9/20/07, Ben Mabey < ben@...> wrote:Andrew WC Brown wrote:I haven't found any How To's to use story runner and I'm not surehowto get started. Should I be looking for resources on how to use rbehave? How do I generate my first Story?------------------------------------------------------------------------_______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-usersPat wrote up an awesome tutorial/example:http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runnerThat should get you started.This pastie may be of use as well: http://pastie.caboo.se/92472 James _______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-users_______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-users-- Monsterbox Productions putting small businesses on-line 1319 Victoria Avenue East Thunder Bay, Ontario P7C 1C3 Canada Andrew WC Brown web-developer and owner andrew@... P: 807-626-9009 F: 807-624-2705 _______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-users_______________________________________________ rspec-users mailing list rspec-users@... http://rubyforge.org/mailman/listinfo/rspec-users
« Return to Thread: Getting Started with Story Runner
| Free embeddable forum powered by Nabble | Forum Help |