Adding database schema version
Этот коммит содержится в:
19
model/system_test.go
Обычный файл
19
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")
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user