Allow blank on should validate_uniqueness_of

11 views
Skip to first unread message

J. Pablo Fernández

unread,
Sep 24, 2010, 3:55:31 PM9/24/10
to shoulda
Using shoulda, any ideas how to allow blank when having this test:

should validate_uniqueness_of(:email)

That is, for testing

validates_uniqueness_of(:email, :allow_blank => true)

Thanks.
Reply all
Reply to author
Forward
0 new messages