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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: