Using shoulda, any ideas how to allow blank when having this test:
should validate_uniqueness_of(:email)
Thanks.
Using shoulda, any ideas how to allow blank when having this test:
should validate_uniqueness_of(:email)
Thanks.
should allow_value(" ").for(:email)
should allow_value(nil).for(:email)
maybe
should validate_uniqueness_of(:email, :allow_blank => true)