edraut / coney_island

An industrial-strength background worker system for Rails using RabbitMQ.
MIT License
7 stars 0 forks source link

Reraise job errors if RAILS_ENV==test #9

Open edraut opened 8 years ago

edraut commented 8 years ago

https://github.com/edraut/coney_island/blob/c94cf3bb7969efe2d67dda44eeb3ec3fe18a0622/lib/coney_island/job.rb#L71

This is swallowing job errors in automated tests.

edraut commented 8 years ago

@darkside should this actually re-raise the exception if Coney is running inline? That might make more sense. Then it would raise in the test env, but also in console if I'm running some job inline.