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 :) Cheers, András -- Tarsoly András [EMAIL PROTECTED] _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users