IMO this function should be tested using the database, since it relies heavily on the data.
________________ Courtenay @(o..O)@ On Apr 2, 2008, at 1:13 AM, Juanma Cervera <[EMAIL PROTECTED]> wrote: > Hello > > I am learning rspec and trying to especify the activerecord > validations > of my models. > > How would I make a require_uniqueness_of specification for a field. > Can I make this with mocks, without touching the database? > Can somebody point me to some information or plugin for this issue. > > Thank you very much. > > Juan M. Cervera > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users