[rspec-users] spec'ing validates_uniqueness_of :whatever

Pat Maddox pergesu at gmail.com
Wed Apr 2 04:58:00 EDT 2008

On Wed, Apr 2, 2008 at 1:19 AM, Courtenay <court3nay at gmail.com> wrote:
> IMO this function should be tested using the database, since it relies
>  heavily on the data.

Agreed.  Create a record, then create another record with duplicate
data, and verify that the second record is invalid.


More information about the rspec-users mailing list