Oban.Testing.refute_enqueued

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

refute_enqueued(repo, opts)

View Source (since 0.3.0)

Specs

refute_enqueued(repo :: module(), opts :: Keyword.t()) :: false

Refute that a job with particular options has been enqueued.

See assert_enqueued/2 for additional details.

Link to this function

refute_enqueued(repo, opts, timeout)

View Source (since 1.2.0)

Specs

refute_enqueued(repo :: module(), opts :: Keyword.t(), timeout :: pos_integer()) ::
  false

Refute that a job with particular options is or will be enqueued within a timeout period.

The minimum refute timeout is 10ms.

See assert_enqueued/2 for additional details.

Examples

Refute that a job will not be enqueued in the next 100ms:

refute_enqueued [worker: MyWorker], 100