summaryrefslogtreecommitdiffstats
path: root/model/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/user_test.go')
-rw-r--r--model/user_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/user_test.go b/model/user_test.go
index a3b4be091..32a6f9b78 100644
--- a/model/user_test.go
+++ b/model/user_test.go
@@ -192,3 +192,13 @@ func TestCleanUsername(t *testing.T) {
t.Fatal("didn't clean name properly")
}
}
+
+func TestRoles(t *testing.T) {
+
+ if !IsValidRoles("admin") {
+ t.Fatal()
+ }
+
+ //IsInRole
+
+}