Skip to content

Instantly share code, notes, and snippets.

@awd
Created September 23, 2009 20:11
Show Gist options
  • Save awd/192245 to your computer and use it in GitHub Desktop.
Save awd/192245 to your computer and use it in GitHub Desktop.
it "should authenticate with matching email and password" do
user = Factory(:user, :email => "foo@example.com", :plain_password => "secret")
User.authenticate("foo@example.com", "secret").should == user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment