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:
parent
13da653f2b
commit
51eff92170
4 changed files with 115 additions and 78 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue