queuetopia v1.4.0 Queuetopia.Test.Assertions View Source

Link to this section Summary

Link to this section Functions

Link to this function

assert_job_created(queuetopia)

View Source

Asserts the job has juste been created

It can be used as below:

# Examples

  job = MyQueuetopia.create_job("mailer_queue", "deliver_mail", %{body: "hello", from: "from", to: "to"})

  assert_job_created(MyQueuetopia)
  assert_job_created(MyQueuetopia, "mailer_queue")
  assert_job_created(MyQueuetopia, "mailer_queue", %{params: %{body: "hello"}})
  assert_job_created(MyQueuetopia, "mailer_queue", %{action: "deliver_email", params: %{body: "hello"}})
Link to this function

assert_job_created(queuetopia, queue)

View Source
Link to this function

assert_job_created(queuetopia, queue, job_params)

View Source
Link to this function

refute_job_created(queuetopia)

View Source

Refute that a job has been created.

Link to this function

refute_job_created(queuetopia, queue)

View Source
Link to this function

refute_job_created(queuetopia, queue, job_params)

View Source