AccountService.updateGroup now handles group description

This commit is contained in:
Boris Bera
2015-07-04 14:42:55 -04:00
parent cd62220ba0
commit 28c47dd9c7
4 changed files with 21 additions and 4 deletions

View File

@@ -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")
}
}
}}
}
}