RSpec Stories On Rails
Using a story to drive your development tasks is a good idea, even when there is only 1 team member. Writing stories helps you stay focused on the requirements without getting side-tracked into something that isn’t working toward the end goal of your app. There’s always time for script.aculo.us later! Using RSpec stories also means you have tests to run against your code so you know that fixing something probably didn’t break something else.
First thing you want to do is get the RSpec on Rails plugin installed, and generate the RSpec code.
$ ./script/plugin install git://github.com/dchelimsky/rspec.git
$ ./script/plugin install git://github.com/dchelimsky/rspec-rails.git
$ ./script/generate rspec
Stories are broken down into 2.5 files:
- 1. The Story file - Where the plain text story resides
- 2. The Step file - Where the different steps in your story are defined.
- 2.5 The Story runner file - The ruby code that kicks everything off.
Posted: June 27th, 2008 under Ruby on Rails.
Comments: none

I don’t get a whole lot of traffic on my blog, and I generally don’t really have too much useful information, so when someone stumbles across here, they usually hit back pretty quick. But how do people get here? Well, according to Google Analytics, they get here by looking for porn. Lots and Lots of foreign porn. The internet is a strange place indeed.