Friday, December 5, 2008

Oh...You're Using RSpec and not TestUnit?!?!

Oh no.....but then when you do
script/generate controller NewController
you generate tests in the test unit folder and not the spec folder and it's a pain in the bottom as doing the generate thing is suppose to save you time and not waste it.

But it's a simple fix and because it's Friday my tip isn't going to be that awesome. But now I remember it and that's all that matters...and thus it is awesome.
script/generate rspec_controller NewController
This will then generate everything correctly for you and your bottom won't be in pain.

1 comment:

Andy Maleh said...

Awesome indeed! I added you to our aggregated Obtivians Unite blog by the way. ;)