fix test after function rename

This commit is contained in:
Nate Finch 2014-08-05 06:07:25 -04:00
parent 38c6d9eca3
commit 670867b0e9

View file

@ -129,7 +129,7 @@ func TestRecursiveAliases(t *testing.T) {
RegisterAlias("Roo", "baz") RegisterAlias("Roo", "baz")
} }
func TestIntoStruct(t *testing.T) { func TestMarshal(t *testing.T) {
SetDefault("port", 1313) SetDefault("port", 1313)
Set("name", "Steve") Set("name", "Steve")
@ -140,7 +140,7 @@ func TestIntoStruct(t *testing.T) {
var C config var C config
err := GetAllIntoStruct(&C) err := Marshal(&C)
if err != nil { if err != nil {
t.Fatalf("unable to decode into struct, %v", err) t.Fatalf("unable to decode into struct, %v", err)
} }
@ -148,7 +148,7 @@ func TestIntoStruct(t *testing.T) {
assert.Equal(t, &C, &config{Name: "Steve", Port: 1313}) assert.Equal(t, &C, &config{Name: "Steve", Port: 1313})
Set("port", 1234) Set("port", 1234)
err = GetAllIntoStruct(&C) err = Marshal(&C)
if err != nil { if err != nil {
t.Fatalf("unable to decode into struct, %v", err) t.Fatalf("unable to decode into struct, %v", err)
} }