Add assertions to show test was mistaken

This commit is contained in:
Étienne Barrié 2020-03-16 14:09:34 -04:00
parent fba1064153
commit 78aa157d79
1 changed files with 2 additions and 0 deletions

View File

@ -1872,6 +1872,7 @@ class PerformedJobsTest < ActiveJob::TestCase
HelloJob.perform_later
end
assert_equal 0, queue_adapter.enqueued_jobs.count
assert_equal 2, queue_adapter.performed_jobs.count
end
@ -1884,6 +1885,7 @@ class PerformedJobsTest < ActiveJob::TestCase
HelloJob.perform_later
assert_performed_with(job: HelloJob)
assert_equal 2, queue_adapter.enqueued_jobs.count
assert_equal 2, queue_adapter.performed_jobs.count
end