forked from mirror/gorm
commit
43be73504f
|
@ -133,6 +133,7 @@ func TestHasTable(t *testing.T) {
|
||||||
Id int
|
Id int
|
||||||
Stuff string
|
Stuff string
|
||||||
}
|
}
|
||||||
|
db.DropTable(&Foo{})
|
||||||
if table_ok := db.HasTable(&Foo{}); table_ok {
|
if table_ok := db.HasTable(&Foo{}); table_ok {
|
||||||
t.Errorf("Table should not exist, but does")
|
t.Errorf("Table should not exist, but does")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue