Tests for Sidekiq handler
Tests for Sidekiq handler

This covers the core functionality of the handler.

Here are ways the tests could be further improved, which I deemed not worth the effort:

1. Testing if the handler is attached properly for Rails < 3 vs. >=3. I have tested it manually for the >=3 case and it works.

2. higher level functional test in the style of how DelayedJob is tested, where actual failing jobs are queued up:
  https://github.com/rollbar/rollbar-gem/blob/master/spec/rollbar/delayed_job_spec.rb

I didn't do this because it's more difficult to do with Sidekiq, for reasons explored here:
  https://github.com/mperham/sidekiq/issues/2128

heshamnaim/rollbar-gem,ptrln/rollbar-gem,monkbroc/rollbar-gem,ptrln/rollbar-gem,heshamnaim/rollbar-gem,crowdworks/rollbar-gem,fabn/rollbar-gem,ptrln/rollbar-gem,crowdworks/rollbar-gem,fabn/rollbar-gem,dck/rollbar-gem,redbubble/rollbar-gem,monkbroc/rollbar-gem,dck/rollbar-gem,redbubble/rollbar-gem,redbubble/rollbar-gem,monkbroc/rollbar-gem,joneslee85/rollbar-gem,dck/rollbar-gem,joneslee85/rollbar-gem,seekingalpha/rollbar-gem,rollbar/rollbar-gem,rollbar/rollbar-gem,fabn/rollbar-gem,seekingalpha/rollbar-gem,heshamnaim/rollbar-gem,seekingalpha/rollbar-gem,joneslee85/rollbar-gem,crowdworks/rollbar-gem,rollbar/rollbar-gem