mirror of https://github.com/go-gorm/gorm.git
HasTable Test should clean up.
This commit is contained in:
parent
4ee47c9228
commit
52de7419f2
|
@ -133,6 +133,7 @@ func TestHasTable(t *testing.T) {
|
|||
Id int
|
||||
Stuff string
|
||||
}
|
||||
db.DropTable(&Foo{})
|
||||
if table_ok := db.HasTable(&Foo{}); table_ok {
|
||||
t.Errorf("Table should not exist, but does")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue