Skip to content

Commit

Permalink
prevent duplicate callbacks for these tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Jan 23, 2025
1 parent 938b0ae commit 6eb79d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/mongoid/interceptable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]) }

Expand Down

0 comments on commit 6eb79d9

Please sign in to comment.