diff options
Diffstat (limited to 'model/user_test.go')
-rw-r--r-- | model/user_test.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/model/user_test.go b/model/user_test.go index 32a6f9b78..190e5826e 100644 --- a/model/user_test.go +++ b/model/user_test.go @@ -199,6 +199,15 @@ func TestRoles(t *testing.T) { t.Fatal() } - //IsInRole + if IsValidRoles("junk") { + t.Fatal() + } + if IsInRole("system_admin junk", "admin") { + t.Fatal() + } + + if !IsInRole("system_admin junk", "system_admin") { + t.Fatal() + } } |