Improve AJ queue adapter test case
In this test case we only check if the third child's queue adpter is nil or not. We should instead check if the queue adapter is the same as base adapter to ensure that it did not change when we changed qdapters for other jobs.
50f0c0f064/activejob/test/cases/queue_adapter_test.rb (L44-L52)
This commit is contained in:
parent
6cee8343f1
commit
daf6e2b0de
@ -48,7 +48,7 @@ class QueueAdapterTest < ActiveJob::TestCase
|
||||
|
||||
child_job_three = Class.new(ActiveJob::Base)
|
||||
|
||||
assert_not_nil child_job_three.queue_adapter
|
||||
assert_equal base_queue_adapter, child_job_three.queue_adapter, "child_job_three's queue adapter should remain unchanged"
|
||||
end
|
||||
|
||||
test "should extract a reasonable name from a class instance" do
|
||||
|
Loading…
Reference in New Issue
Block a user