From 58d0d9afd286afd715e9f04825e1305045d404e2 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Fri, 4 Sep 2015 11:59:10 -0700 Subject: Adding cmd line options --- model/user_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model/user_test.go') 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 + +} -- cgit v1.2.3-1-g7c22