From e9ecf9c1aa2c4c9114184ca9a60fa9c9ad46d9ba Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Fri, 29 Aug 2014 17:12:12 +0800 Subject: [PATCH] Fix HasTable tests --- main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_test.go b/main_test.go index 797a78aa..65cacf9e 100644 --- a/main_test.go +++ b/main_test.go @@ -134,13 +134,13 @@ func TestHasTable(t *testing.T) { Stuff string } DB.DropTable(&Foo{}) - if table_ok := DB.HasTable(&Foo{}); table_ok { + if ok := DB.HasTable(&Foo{}); ok { t.Errorf("Table should not exist, but does") } if err := DB.CreateTable(&Foo{}).Error; err != nil { t.Errorf("Table should be created") } - if table_ok := DB.HasTable(&Foo{}); !table_ok { + if ok := DB.HasTable(&Foo{}); !ok { t.Errorf("Table should exist, but HasTable informs it does not") } }