mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user