We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c6de5 commit 9b069eeCopy full SHA for 9b069ee
activejob/test/cases/test_helper_test.rb
@@ -806,6 +806,24 @@ def test_assert_enqueued_jobs_with_performed
806
end
807
808
809
+class QueueAdapterTest < ActiveJob::TestCase
810
+ class JobWithAnAdapter < ActiveJob::Base
811
+ self.queue_adapter = :async
812
+
813
+ def perform; end
814
+ end
815
816
+ def queue_adapter_for_test
817
+ ActiveJob::QueueAdapters::TestAdapter.new
818
819
820
+ test "assert_enqueued_with enqueues a job with a queue_adapter and queue_adapter_for_test" do
821
+ assert_enqueued_with(job: JobWithAnAdapter) do
822
+ JobWithAnAdapter.perform_later
823
824
825
+end
826
827
class PerformedJobsTest < ActiveJob::TestCase
828
if adapter_is?(:test)
829
include DoNotPerformEnqueuedJobs
0 commit comments