Oban.Testing.assert_enqueued
You're seeing just the function
assert_enqueued
, go back to Oban.Testing module for more information.
Specs
Assert that a job with particular options has been enqueued.
Only values for the provided arguments will be checked. For example, an assertion made on
worker: "MyWorker"
will match any jobs for that worker, regardless of the queue or args.
Specs
assert_enqueued(repo :: module(), opts :: Keyword.t(), timeout :: pos_integer()) :: true
Assert that a job with particular options is or will be enqueued within a timeout period.
See assert_enqueued/2
for additional details.
Examples
Assert that a job will be enqueued in the next 100ms:
assert_enqueued [worker: MyWorker], 100