Skip to content

Instantly share code, notes, and snippets.

@donpinkster
Created September 19, 2012 07:42
Show Gist options
  • Save donpinkster/3748234 to your computer and use it in GitHub Desktop.
Save donpinkster/3748234 to your computer and use it in GitHub Desktop.
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