Skip to content

Commit

Permalink
commit fix for failing unit test #2811
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Mar 1, 2023
1 parent bdb0de1 commit 34bfe9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.3
minimum = 0.31
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AdminController {
def createUserHubPermission(){
HubSettings hubSettings = SettingService.getHubConfig()
def user = userService.getUser()
render(view: "createUserHubPermission", model:[roles: roleService.MERIT_HUB_ROLES, user: user, hubId: hubSettings.hubId, hubFlg:true])
render(view: "createUserHubPermission", model:[roles: RoleService.MERIT_HUB_ROLES, user: user, hubId: hubSettings.hubId, hubFlg:true])
}

@PreAuthorise(accessLevel = 'siteAdmin', redirectController = "admin")
Expand Down
4 changes: 2 additions & 2 deletions src/test/groovy/au/org/ala/merit/AdminControllerSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ class AdminControllerSpec extends Specification implements ControllerUnitTest<Ad
setup:
HubSettings hubSettings = new HubSettings(hubId:'00cf9ffd-e30c-45f8-99db-abce8d05c0d8')
SettingService.setHubConfig(hubSettings)
def roles = roleService.MERIT_HUB_ROLES
def hubFlg = true
List roles = RoleService.MERIT_HUB_ROLES
Boolean hubFlg = true

when:
def results = controller.createUserHubPermission()
Expand Down

0 comments on commit 34bfe9e

Please sign in to comment.