Re: [rspec-users] basic noob questions

2009-07-24 Thread David Chelimsky
On Fri, Jul 24, 2009 at 7:13 PM, norm wrote: > Struggling mightily! > > Testing a controller called Govtpositions. Just focusing on testing > the create method for the moment. I would imagine there should be two > examples for a successful save... instantiate the model object and > then save it, is

Re: [rspec-users] basic noob questions

2009-07-24 Thread BJ Clark
Norm, I don't test instantiation and then saving, I test successful and unsuccessful creation. By testing this concern, I don't need to worry about expectations or mocks, I actually create the object (or not!) and then test that the controller behaves the way I expect it to in these situa

[rspec-users] basic noob questions

2009-07-24 Thread norm
Struggling mightily! Testing a controller called Govtpositions. Just focusing on testing the create method for the moment. I would imagine there should be two examples for a successful save... instantiate the model object and then save it, is that right? So just to test the model object instantia