Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore authored Jan 22, 2025
1 parent 72c5ab1 commit 488a362
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/jobs/user_stat_collection_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
before do
FactoryBot.create(:user_stat) # Ensure a UserStat record exists
end

after do
# Ensure we reset to the default tenant after each test
Apartment::Tenant.switch!(Apartment.default_tenant)
end
it 'enqueues UserStatCollectionJob after perform' do
switch!(account)
expect { UserStatCollectionJob.perform_now }.to have_enqueued_job(UserStatCollectionJob)
Expand Down

0 comments on commit 488a362

Please sign in to comment.