summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-12 18:19:03 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-12 19:28:58 -0800
commit34d56294a240a38722d2d752c63ce087de625080 (patch)
tree4ff25d543b9789a700afc08eb16e0e586bbb830f /api/user_test.go
parentff21a5c75f090d5c27446eeaa6fb3ff6f82c5ab4 (diff)
downloadchat-34d56294a240a38722d2d752c63ce087de625080.tar.gz
chat-34d56294a240a38722d2d752c63ce087de625080.tar.bz2
chat-34d56294a240a38722d2d752c63ce087de625080.zip
Patching remainder of the sql stmts to work with postgres
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go7
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" {