[mocha-developer] ActiveRecord Validations - validates_uniqueness_of

James Mead jamesmead44 at gmail.com
Wed Sep 13 05:28:17 EDT 2006

On 12/09/06, Chris Roos <chrisjroos at gmail.com> wrote:
> I remember James working on something that deals with exactly this
> situation but I can't remember off hand what state it's in - James?

Yes, this is part of what AutoMocha was trying to achieve, but it hasn't got
any further. As Chris explained, whatever you do, you need to set up
expectations before loading the class definition. One thing you may need to
ascertain is whether loading the class multiple times has any undesirable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060913/a93fe651/attachment.html 

More information about the mocha-developer mailing list