Skip to content

Commit

Permalink
Ensure db cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jul 8, 2024
1 parent 6e1050a commit c3d0d18
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 c3d0d18

Please sign in to comment.