Skip to content

Commit

Permalink
Ensure we tidy up the class attributes after each spec
Browse files Browse the repository at this point in the history
  • Loading branch information
DangerDawson committed Aug 3, 2024
1 parent a39ac5c commit 4c0c5be
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 4c0c5be

Please sign in to comment.