On 5 Apr 2009, at 03:56, Brandon Olivares wrote:
Hi,
How small should examples be?
Let's say I have a form, should there be one example per field? If
there's a
dropdown, should I describe the dropdown and have one example per
option? I
thought that at first but now, because of the duplication and sheer
verbosity, it seems too much.
So what do you think?
http://blog.jayfields.com/2007/06/testing-one-assertion-per-test.html
Again, I would urge you to listen to the tests and question whether
writing unit tests for your views is worthwhile. If you're finding it
a hassle, there might be a reason for that :)
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users