From 6eb79d95ce2db0c2f7666637fec2c087e81a5868 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 23 Jan 2025 14:02:41 -0700 Subject: [PATCH] prevent duplicate callbacks for these tests --- spec/mongoid/interceptable_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/mongoid/interceptable_spec.rb b/spec/mongoid/interceptable_spec.rb index d96a5edb70..da1fa19a87 100644 --- a/spec/mongoid/interceptable_spec.rb +++ b/spec/mongoid/interceptable_spec.rb @@ -392,6 +392,8 @@ class TestClass context 'with embedded grandchildren' do IS = InterceptableSpec + config_override :prevent_multiple_calls_of_embedded_callbacks, true + context 'when creating' do let(:registry) { IS::CallbackRegistry.new(only: %i[ before_save ]) }