search for: test_set_password

Displaying 1 result from an estimated 1 matches for "test_set_password".

2008 Dec 05
4
Replicating Form Behaviour in Functional Test
Hi, I''m really struggling getting a controller test to pass while the form that uses the method operates correctly. I would really welcome a second pair of eyes to help me find out what I''m missing. The test def test_set_password @request.session[:user] = users(:admin) put :set_password, :id => users(:one).id, :user => {:password => "newpass", :password_confirmation => "newpass"} assert User.authenticate(users(:one).username, "newpass") assert_redirected_to user_pa...