[mocha-developer] ActiveRecord Validations - validates_uniqueness_of
Jonathan Younger
daikini at gmail.com
Tue Sep 12 13:21:55 EDT 2006
Hello,
I'm wanting to use Mocha and Stubba for my tests in place of the
default Rails testing with fixtures.
I have the following class:
class Person < ActiveRecord::Base
validates_uniqueness_of :email
end
and am wondering how I can test to ensure that the
validates_uniqueness_of validation is running.
Any ideas?
-Jonathan
More information about the mocha-developer
mailing list