making the world a stranger place

Site menu:

Archives

Meta

Links:

Tags

RSpec Stories On Rails

Congrats on Passing that Test SuiteUsing 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.

Read more »

Re: Re: Five Ways Vista is better than OS X

I was reading Chris Pirillo’s blog tonight, catching up on some stuff, and came across this: Five Ways Vista is better than OS X? where he gives his side of a blog article by Preston Galla’s article (by the same name)

Chris claims he is tired of the bickering between OS X and Windows users (as is just about everyone else) and tries to counter-argue the points brought up by Preston, and I couldn’t help but throw my hat in the ring of fire too! I’m going to throw my comments inline with Chris Pirillo’s commentary. Read more »

The Internet is Weird

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.