Skip to content

Instantly share code, notes, and snippets.

@ropiku
Created February 11, 2009 23:32
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 ropiku/62367 to your computer and use it in GitHub Desktop.
Save ropiku/62367 to your computer and use it in GitHub Desktop.
context "A user" do
setup do
@user = Factory(:user)
@password = @user.password
end
should "authenticate with username and good credentials" do
assert User.authenticate(@user.username, @password)
assert @user.authenticated?(@password)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment