User ctrl refactor - breaks up large methods, moves some logic into model

Includes missing methods from backup for travis to pass

fix missing code, failing specs

keep params handling in the controller.
This commit is contained in:
sirMackk
2013-10-07 11:19:45 +01:00
committed by Manoj Kumar
parent ed5eb469d5
commit af67284995
4 changed files with 37 additions and 36 deletions

View File

@ -249,7 +249,7 @@ describe UsersController do
context 'valid token' do
before do
EmailToken.expects(:confirm).with('asdfasdf').returns(user)
get :password_reset, token: 'asdfasdf'
put :password_reset, token: 'asdfasdf', password: 'newpassword'
end
it 'returns success' do