FaktoryWorker.Testing.reset_queues
You're seeing just the function
reset_queues
, go back to FaktoryWorker.Testing module for more information.
Resets the queue history for all job modules.
Generally, this should be called in the setup
block for any tests that
use assert_enqueued/2
or refute_enqueued/2
, to ensure that test cases
don't pollute each other.
This will reset the history for all job modules; if you need finer-grained
control over which job modules are reset (generally you shouldn't), use
FaktoryWorker.Sandbox.reset/1
instead.
If you don't need to perform any other setup, you can use the atom shorthand
setup :reset_queues