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 }