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