Skip to content

Instantly share code, notes, and snippets.

@josevalim
Created February 6, 2009 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josevalim/59569 to your computer and use it in GitHub Desktop.
Save josevalim/59569 to your computer and use it in GitHub Desktop.
describe User do
valid_attributes :name => 'José Valim', :email => 'myemail@josevalim.com', :password => '12345'
it{ should validates_presence_of(:email) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment