James Byrne wrote: Q. > To prevent duplicate values in the DBMS I use a unique index on those > columns. I am testing that duplicate values cannot, in fact, be added.
> I thought, probably incorrectly, that when #save is called then any > errors are returned to the controller to handle. This is evidently not > happening so can someone tell me how this is supposed to be handled? A. rescue ActiveRecord::StatementInvalid -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users