Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment