Displaying 1 result from an estimated 1 matches for "7bd49a79".
2007 Nov 14
4
Stubbing out required associated models
Hello,
As I''m becoming more and more familiar with mocking/stubbing, I''m going back
to some of my model specs and revaluating how I wrote them.
I have certain models in which validation requires the presence of an
associated model, which itself needs to be valid(validates_presence_of and
validates_associated).
When I wrote the specs, I wrote helpers for the attributes instead