From 83aa5397c04c08a4fe1c8a723696ed43088386e3 Mon Sep 17 00:00:00 2001 From: Lars Vonk Date: Wed, 8 Nov 2023 18:20:13 +0100 Subject: [PATCH] Clear AggregateRepository after spec --- spec/lib/sequent/core/aggregate_repository_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/lib/sequent/core/aggregate_repository_spec.rb b/spec/lib/sequent/core/aggregate_repository_spec.rb index 1ecebe65..e32b6e63 100644 --- a/spec/lib/sequent/core/aggregate_repository_spec.rb +++ b/spec/lib/sequent/core/aggregate_repository_spec.rb @@ -34,6 +34,9 @@ def load_from_history(stream, events) Sequent.configuration.event_store = event_store repository.clear end + after do + repository.clear + end let(:event_store) { double } let(:repository) { Sequent.configuration.aggregate_repository }