diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-12 18:19:03 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-12 18:19:03 -0800 |
commit | cf11d387eef7883d8c2866d8bb44887120499963 (patch) | |
tree | a20e4d6f5910f510c191ee050cac6ab6340c6947 /api/user_test.go | |
parent | 1c493317857e729597bb59fc0878b49106257582 (diff) | |
download | chat-cf11d387eef7883d8c2866d8bb44887120499963.tar.gz chat-cf11d387eef7883d8c2866d8bb44887120499963.tar.bz2 chat-cf11d387eef7883d8c2866d8bb44887120499963.zip |
Patching remainder of the sql stmts to work with postgres
Diffstat (limited to 'api/user_test.go')
-rw-r--r-- | api/user_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/user_test.go b/api/user_test.go index 6e99ab930..f2b69aba4 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -54,6 +54,13 @@ func TestCreateUser(t *testing.T) { } } + ruser.Data.(*model.User).Email = "test2@nowhere.com" + if _, err := Client.CreateUser(ruser.Data.(*model.User), ""); err != nil { + if err.Message != "An account with that username already exists." { + t.Fatal(err) + } + } + ruser.Data.(*model.User).Email = "" if _, err := Client.CreateUser(ruser.Data.(*model.User), ""); err != nil { if err.Message != "Invalid email" { |