Skip to content

Commit

Permalink
Merge pull request #3765 from DataDog/tonycthsu/fix-leaky-spec
Browse files Browse the repository at this point in the history
Fix leaky db test
  • Loading branch information
TonyCTHsu authored Jul 8, 2024
2 parents 6e1050a + c3d0d18 commit 89e5d0a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
Datadog.registry[:active_record].reset_configuration!
end

after do
Article.delete_all
end

context 'when a model is instantiated' do
before { article }

Expand Down

0 comments on commit 89e5d0a

Please sign in to comment.