Skip to content

Commit

Permalink
SHIBUI-1848
Browse files Browse the repository at this point in the history
Adjusting user test
  • Loading branch information
chasegawa committed Jun 25, 2021
1 parent b18290c commit 3e98da8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ class GroupsControllerIntegrationTests extends Specification {
@WithMockUser(value = "admin", roles = ["ADMIN"])
def 'DELETE performs correctly when group attached to a user'() {
given:
def group = [name: 'A1',
description: 'AAA Group',
resourceId: 'AAA']
def group = [resourceId: 'AAA']
def newUser = [firstName: 'Foo',
lastName: 'Bar',
username: 'FooBar',
Expand Down Expand Up @@ -211,7 +209,7 @@ class GroupsControllerIntegrationTests extends Specification {
"username" : "FooBar",
"createdBy" : admin,
"lastName" : "Bar",
"group" : {"description":"AAA Group","name":"A1","resourceId":"AAA"}
"group" : {"resourceId":"AAA"}
}"""
then: 'Request completed with HTTP 200 and returned one user'
userresult.andExpect(status().isOk())
Expand Down

0 comments on commit 3e98da8

Please sign in to comment.