On 10/26/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/26/07, Tarsoly András <[EMAIL PROTECTED]> wrote: > Take a look at http://pastie.caboo.se/111125 (reorganized from your > example). Note that each example is about what the controller does, > not what the model does. Also note that there are no "and"s in any of > the labels. Each example sets up one thing and describes what happens > when the action is invoked based on those conditions. > > HTH, > David
Here's an alternative broken down into more granular specs: http://pastie.caboo.se/111130. Generally I find that I don't break up my controller specs like that, but I break up specs for models like that all the time, so maybe I should be doing them this way :) _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users