mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
AccountService.updateGroup now handles group description
This commit is contained in:
@@ -85,5 +85,18 @@ class AccountServiceSpec extends Specification with ServiceSpecBase {
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
"updateGroup" should { withTestDB { implicit session =>
|
||||
"save description" in {
|
||||
AccountService.createGroup("a-group", None, None)
|
||||
|
||||
AccountService.updateGroup("a-group", None, Some("new description"), false)
|
||||
|
||||
val group = AccountService.getAccountByUserName("a-group")
|
||||
group must beSome.like {
|
||||
case account => account.groupDescription must beSome("new description")
|
||||
}
|
||||
}
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user