diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-18 09:25:47 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-18 09:25:47 -0700 |
commit | cdf813f07b207c14bb9fa03f38d734b45e40823e (patch) | |
tree | 109c6cefb3580b9ed9b314ce40bd130728d587ff /model/system_test.go | |
parent | 1aa4913c44ba9a342d240e5e1ca9d5e89929e499 (diff) | |
parent | 5a436fd447753124b3f7705ecb123ecf5762bc24 (diff) | |
download | chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.tar.gz chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.tar.bz2 chat-cdf813f07b207c14bb9fa03f38d734b45e40823e.zip |
merging
Diffstat (limited to 'model/system_test.go')
-rw-r--r-- | model/system_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/model/system_test.go b/model/system_test.go new file mode 100644 index 000000000..14ba0db2e --- /dev/null +++ b/model/system_test.go @@ -0,0 +1,19 @@ +// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. +// See License.txt for license information. + +package model + +import ( + "strings" + "testing" +) + +func TestSystemJson(t *testing.T) { + system := System{Name: "test", Value: NewId()} + json := system.ToJson() + result := SystemFromJson(strings.NewReader(json)) + + if result.Name != "test" { + t.Fatal("Ids do not match") + } +} |