Merge pull request #788 from jcscottiii/fix_polymorphic_test

Fix polymorphic test
This commit is contained in:
Jinzhu 2016-01-06 23:57:18 +08:00
commit 2392e2a33e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func TestPolymorphic(t *testing.T) {
t.Errorf("Cat's toys count should be 1") 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") t.Errorf("Dog's toys count should be 2")
} }