sample code is thr rspec one of the book Rails3 recipebook