[rspec-users] Weird failing spec

Tarsoly András tarsolya at gmail.com
Sat Oct 27 04:45:52 EDT 2007

On 2007.10.27., at 7:18, David Chelimsky wrote:

> and_raise(ActiveRecord::RecordInvalid.new(@option))
> Sorry if I led you astray on that one.

No problems, actually it makes perfect sense, since you want @option  
to have all the proper error messages and such.

After adjusting the specs like this one, it was all working fine and  
dandy as soon as I stubbed the .errors.full_messages() call.

This raises up a question in me about mocking or using real-life  
models, because in some of my specs the setups getting extremely  
bulky. But this is for another topic :)


Tarsoly András
tarsolya at gmail.com

More information about the rspec-users mailing list