Skip to content

Instantly share code, notes, and snippets.

@ecdpalma
Created February 17, 2011 21: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 ecdpalma/832749 to your computer and use it in GitHub Desktop.
Save ecdpalma/832749 to your computer and use it in GitHub Desktop.
users.yml
user1:
username: user1
password: asdlkj
------
user_test.rb
(...)
test "passwordchange" do
assert_equal @user1, User.authenticate("user1", "asdlkj") #SUCCESS
assert_equal @user1.username, "user1" #FAIL
(...)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment