From 195d5993b390060d58597259a5a12a4e56c0d31e Mon Sep 17 00:00:00 2001 From: "James C. Scott" Date: Wed, 6 Jan 2016 10:34:42 -0500 Subject: [PATCH] Fix polymorphic test One assertion comment says look for association with dog but the code still uses cat. This aligns the code to now look at the association of the dog. --- polymorphic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }