Created
September 19, 2012 07:42
-
-
Save donpinkster/3748234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe User do | |
it { should allow_mass_assignment_of(:email) } | |
it { should allow_mass_assignment_of(:password) } | |
it { should allow_mass_assignment_of(:password_confirmation) } | |
it { should validate_uniqueness_of(:email) } | |
it { should allow_value("[email protected]").for(:email) } | |
it { should_not allow_value("blah").for(:email) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment