diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-04 11:59:10 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-04 11:59:10 -0700 |
commit | 58d0d9afd286afd715e9f04825e1305045d404e2 (patch) | |
tree | 10615aa68c68106684503fb18ae4e4ef8998bc22 /model/user_test.go | |
parent | 05d95d80a896d14474c7f7384d67b9edd524b922 (diff) | |
download | chat-58d0d9afd286afd715e9f04825e1305045d404e2.tar.gz chat-58d0d9afd286afd715e9f04825e1305045d404e2.tar.bz2 chat-58d0d9afd286afd715e9f04825e1305045d404e2.zip |
Adding cmd line options
Diffstat (limited to 'model/user_test.go')
-rw-r--r-- | model/user_test.go | 10 |
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 + +} |