0
0
Fork 0

Adding more test stubs

This commit is contained in:
Eugen Rochko 2016-03-19 12:13:47 +01:00
parent 66a2107527
commit d4892ace62
13 changed files with 100 additions and 23 deletions

View file

@ -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