I like the RSpec/autotest combo, but I'm not exactly the guy with the wealth of experience. I've been working in Drupal recently, and the elegance of something like RSpec seems like a distant memory now.
My advice is to watch a few Peepcode screencasts (I gotta start collecting affiliate fees from that guy, I drop his name so much) and just pick a method and start. Don't get too obsessed with exactly which flavor of the testing religion you are adopting; play around with it a while. RSpec is as good a place to start as any, although you should obviously know enough about Test::Unit to read and recognize other people's vanilla unit tests.
I'd be sure to try autotest with whatever else you use, though, because it's fun to get the dynamic feedback.
You can learn way, way too much about Rails testing by reading Jay Fields' blog. There was also some useful stuff on the Thoughtbot blog, back when I was actually paying attention.
Comments
I like the RSpec/autotest combo, but I'm not exactly the guy with the wealth of experience. I've been working in Drupal recently, and the elegance of something like RSpec seems like a distant memory now.
My advice is to watch a few Peepcode screencasts (I gotta start collecting affiliate fees from that guy, I drop his name so much) and just pick a method and start. Don't get too obsessed with exactly which flavor of the testing religion you are adopting; play around with it a while. RSpec is as good a place to start as any, although you should obviously know enough about Test::Unit to read and recognize other people's vanilla unit tests.
I'd be sure to try autotest with whatever else you use, though, because it's fun to get the dynamic feedback.
You can learn way, way too much about Rails testing by reading Jay Fields' blog. There was also some useful stuff on the Thoughtbot blog, back when I was actually paying attention.