Skip to content

Instantly share code, notes, and snippets.

@shaliko
Created January 26, 2011 15:12
Show Gist options
  • Save shaliko/796812 to your computer and use it in GitHub Desktop.
Save shaliko/796812 to your computer and use it in GitHub Desktop.
job = Delayed::Job.last
assert_equal(Delayed::PerformableMethod, job.payload_object.class)
assert_equal("AR:User:#{@user.id}", job.payload_object.object)
assert_equal(:my_method, job.payload_object.method)
assert_equal([1,2,3], job.payload_object.args)
should "execute Delayed::Job task" do
job = Delayed::Job.last
assert job.invoke_job # if succefully return true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment