title: Test if a Sidekiq job has been created when using .delay
body: <p>I'm using Rails 4.2 with sidekiq 4.1. I want to test that I'm actually queuing a user for deletion. Right now I'm doing something like this in the code</p>
  
  <pre><code>User.delay.destroy(user_id)
  </code></pre>
  
  <p>and I'm used to test it like so</p>
  
  <pre><code>it { expect(UserRemoveWorker.jobs.size).to eq 1 }
  </code></pre>
  
  <p>but I don't have a worker like that and I don't want to create a new worker (the <code>UserRemoveWorker</code> in this case) when I can simply call the <code>delay</code> method.</p>
  
  <p>What's the best way to see if I have queued the job / written it to Redis?</p>
  
  <p>Thanks!</p>