Fix couple cosmetic typos

This commit is contained in:
Vytautas Šaltenis 2014-07-12 13:32:53 +03:00
parent 3587dbee4d
commit 78948f1b7f
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ type Product struct {
type Animal struct {
Counter int64 `primaryKey:"yes"`
Name string
From string //test reserverd sql keyword as field name
From string //test reserved sql keyword as field name
CreatedAt time.Time
UpdatedAt time.Time
}
@ -1103,7 +1103,7 @@ func TestUpdate(t *testing.T) {
}
if db.First(&Animal{}, "name = 'Ferdinand'").Error == nil {
t.Errorf("Animal 'Fredinand' should be changed to 'Franz'")
t.Errorf("Animal 'Ferdinand' should be changed to 'Franz'")
}
if db.First(&Animal{}, "name = 'Robert'").Error != nil {