[rspec-users] Mocking / stubbing errors for ActiveRecord

Martin html-kurs at gmx.de
Thu Feb 19 15:54:46 EST 2009


Hi,

I'm trying to test my views using rspec. I want to test my edit- and 
new-view also for the case an error occurs (something like "title can't 
be blank" and so on).
Can someone point me please to an example where I can see how to mock my 
   model and stub all methods needed for the view?

Thank you,
Martin


More information about the rspec-users mailing list