diff --git a/tests/associations_test.go b/tests/associations_test.go index 696c84bb..32f6525b 100644 --- a/tests/associations_test.go +++ b/tests/associations_test.go @@ -236,6 +236,7 @@ func TestSaveBelongsCircularReference(t *testing.T) { DB.First(&parent1, parent.ID) AssertObjEqual(t, parent, parent1, "ID", "FavChildID") + // Save and Updates is the same DB.Updates(&parent) DB.First(&parent1, parent.ID) AssertObjEqual(t, parent, parent1, "ID", "FavChildID")