[rspec-users] spec'ing validates_uniqueness_of :whatever

Juanma Cervera lists at ruby-forum.com
Wed Apr 2 04:13:12 EDT 2008


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/.

More information about the rspec-users mailing list