I am starting to work with Hubot and while testing for roles I figured out there was no way to test if a user requesting an action as or was not an admin, so I added an isAdmin method and replaced a couple if checks (adding and removing roles) to use it instead.
I am starting to work with Hubot and while testing for roles I figured out there was no way to test if a user requesting an action as or was not an admin, so I added an
isAdmin
method and replaced a couple if checks (adding and removing roles) to use it instead.Test cases are passing fine after the change.