Adding more test stubs
This commit is contained in:
parent
66a2107527
commit
d4892ace62
13 changed files with 100 additions and 23 deletions
|
@ -1,14 +0,0 @@
|
|||
class SetupLocalAccountService < BaseService
|
||||
# Setup an account for a new user instance by generating
|
||||
# an RSA key pair and a profile
|
||||
# @param [User] user Unsaved user instance
|
||||
# @param [String] username
|
||||
def call(user, username)
|
||||
user.build_account
|
||||
|
||||
user.account.username = username
|
||||
user.account.domain = nil
|
||||
|
||||
user.save!
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue