[rspec-users] spec'ing validates_uniqueness_of :whatever
court3nay at gmail.com
Wed Apr 2 04:19:26 EDT 2008
IMO this function should be tested using the database, since it relies
heavily on the data.
On Apr 2, 2008, at 1:13 AM, Juanma Cervera <lists at ruby-forum.com> wrote:
> I am learning rspec and trying to especify the activerecord
> 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 at rubyforge.org
More information about the rspec-users