From 7c028a4bde8fdc118bac13a8911849ce0b8950b0 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Sat, 22 Aug 2026 04:55:53 -0600 Subject: [PATCH] test: verify relationship fill does not persist (#120) --- .../BaseEntity/Relationships/RelationshipLoadingSpec.cfc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/specs/integration/BaseEntity/Relationships/RelationshipLoadingSpec.cfc b/tests/specs/integration/BaseEntity/Relationships/RelationshipLoadingSpec.cfc index 94ec303..91dcb06 100644 --- a/tests/specs/integration/BaseEntity/Relationships/RelationshipLoadingSpec.cfc +++ b/tests/specs/integration/BaseEntity/Relationships/RelationshipLoadingSpec.cfc @@ -110,6 +110,10 @@ component extends="tests.resources.ModuleIntegrationSpec" { expect( anotherPost.isLoaded() ).toBeFalse(); expect( anotherPost.getBody() ).toBe( "another body" ); expect( anotherPost.getUser_Id() ).toBe( 1 ); + expect( variables.queries ).toHaveLength( + 1, + "Filling and associating the new post must not persist it." + ); } ); it( "can call fetch methods on the relationship builder", () => {