2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

Refactor UsersController#create

* Simplify controller action
* Extract service classes
This commit is contained in:
Scott Albertson 2013-11-12 14:37:38 -08:00
parent 13da653f2b
commit 51eff92170
4 changed files with 115 additions and 78 deletions

View file

@ -277,12 +277,9 @@ describe UsersController do
session[:current_user_id].should be_blank
end
end
end
describe '.create' do
describe '#create' do
before do
@user = Fabricate.build(:user)
@user.password = "strongpassword"