Overriding resque spec

This is a reminder to myself mainly… It’s the second time in the last 6 months where I lose valuable time because of this error.

If you are using the Resque spec gem in an engine, make sure that you do NOT include it in the development dependencies of the “gemspec” file. Doing this overrides the default Resque send mechanism and prevents message enqueuing. Instead, you need to modify the “Gemfile” as follows:

group :test do
  gem 'resque_spec'

This seems to do the trick. I couldn’t find a more elegant solution. I could use the disable_ext option but that’s even more ugly.