[rspec-users] Mocking / stubbing errors for ActiveRecord

Martin html-kurs at gmx.de
Sat Feb 21 07:04:36 EST 2009

Hello alltogether,

thanks for your help. A mixture of stub_model and .errors.stub!() helped 
  me to solve my problem.

I also stumbled across the right arguments of have_tag. I thought it's 
similar to assert_select as the docs said. But it isn't. I found 
http://rubypond.com/articles/2008/03/31/using-rspec-have_tag/ which is a 
nice introduction to it.

Thanks again,

More information about the rspec-users mailing list