Module: ResqueSpec::BaseMethods
- Defined in:
- lib/tresque/resque_spec/resque_spec.rb
Overview
methods to be made accessible for every spec
Instance Method Summary collapse
Instance Method Details
#run_resque_workers(options = {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/tresque/resque_spec/resque_spec.rb', line 10 def run_resque_workers( = {}) quantity = .fetch(:quantity, 1) quantity.times do ResqueSpec.perform_all! end end |