search for: ccfb1a56

Displaying 1 result from an estimated 1 matches for "ccfb1a56".

2008 Jan 28
2
Could this controller test be made simpler?
In a create controller method I am testing the else clause that occurs when the model is unable to be saved. Sounds simple enough, but because model is created before the save and the form has to be re-filled I now have to stub a model and all the attributes. Since the error messages are displayed I also have to stub some methods within the model that allow the error messages to be displayed