Skip to content

Commit

Permalink
corrigindo problemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsm committed Sep 14, 2013
1 parent 4bba32c commit b8cefd2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/functional/steps/MemberTestDataAndOperations.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ class MemberTestDataAndOperations {
}
static public void deleteMember(String username) {
def cont = new MemberController()
def identificador = Member.findByUsername(username).id
def identificador = User.findByUsername(username)?.author?.id
cont.params << [id: identificador]
cont.request.setContent(new byte[1000]) // Could also vary the request content.
cont.delete()
//cont.save()
cont.response.reset()
}
static public boolean containsMember(username) {
def member = User.findByUsername(username)
def cont = new MemberController()
def result = cont.list().userMemberInstanceList
return result.contains(member)
for(i in result){
if(i.user.username == username && i.member != null)
return true;
}
return false;
}
}

0 comments on commit b8cefd2

Please sign in to comment.