Groups
Sign in
Groups
shoulda
Conversations
About
Send feedback
Help
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 PM
9/24/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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