Queuetopia.Test.Assertions.assert_job_created

You're seeing just the function assert_job_created, go back to Queuetopia.Test.Assertions module for more information.
Link to this function

assert_job_created(queuetopia, job_attrs \\ %{})

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, 1)
  assert_job_created(MyQueuetopia, %{queue: "mailer_queue", params: %{body: "hello"}})
  assert_job_created(MyQueuetopia, 2, %{action: "deliver_email", params: %{body: "hello"}})
Link to this function

assert_job_created(queuetopia, expected_count, job_attrs)

View Source