Post by Peter Cooper on August 10th, 2007
Fixing Rails’ Fixtures

- How to create a Ruby extension in C in under 5 minutes
- May’s Ruby Jobs Update
- WhatLanguage: Ruby Library To Detect The Language Of A Text



In "Fixin' Fixtures" Chris Wanstrath looks at how to make working with fixtures in a Rails testing environment a lot less painful. His opening paragraph says it best:
The main problem with fixtures, for me, has always been how unfun they are. They literally suck the fun out of anything they’re around. You throw them in your test/ directory, then suddenly testing is, like, work. But it’s not work, dammit. This is Ruby, dammit.
So, keep them fun. Write your fixtures in Ruby.
Enjoy!

Click here to add on del.icio.us









August 12th, 2007 at 5:44 am
In the spirit of "fixin' fixtures", here is a solution of using a factory instead of fixtures: http://www.dcmanges.com/blog/38