Oban.Testing.assert_enqueued

You're seeing just the function assert_enqueued, go back to Oban.Testing module for more information.
Link to this function

assert_enqueued(repo, opts)

View Source (since 0.3.0)

Specs

assert_enqueued(repo :: module(), opts :: Keyword.t()) :: true

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.

Link to this function

assert_enqueued(repo, opts, timeout)

View Source (since 1.2.0)

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