Merge pull request #210 from rbg/master

HasTable Test should clean up.
This commit is contained in:
Jinzhu 2014-08-29 22:30:19 +08:00
commit 43be73504f
1 changed files with 1 additions and 0 deletions

View File

@ -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")
}