Skip to content

Commit

Permalink
Merge pull request #696 from Cygnetise/memory_optimisations
Browse files Browse the repository at this point in the history
Ensure we tidy up the class attributes after each spec
  • Loading branch information
solnic authored Aug 4, 2024
2 parents 56ff0df + 4c0c5be commit 142841c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repository/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def self.remove_constants

config.after do
Test.remove_constants
ROM::Repository::RelationReader.relation_readers(nil)
ROM::Repository::RelationReader.relation_cache(Concurrent::Hash.new)
end

Dir[SPEC_ROOT.join('support/*.rb').to_s].each do |f|
Expand Down

0 comments on commit 142841c

Please sign in to comment.