diff --git a/polymorphic_test.go b/polymorphic_test.go index f3d7584d..31ffab4a 100644 --- a/polymorphic_test.go +++ b/polymorphic_test.go @@ -44,7 +44,7 @@ func TestPolymorphic(t *testing.T) { t.Errorf("Cat's toys count should be 1") } - if DB.Model(&cat).Association("Toy").Count() != 1 { + if DB.Model(&dog).Association("Toys").Count() != 2 { t.Errorf("Dog's toys count should be 2") }