module ResqueSpec::BaseMethods

methods to be made accessible for every spec

Public Instance Methods

run_resque_workers(options = {}) click to toggle source
# File lib/tresque/resque_spec/resque_spec.rb, line 10
def run_resque_workers(options = {})
  quantity = options.fetch(:quantity, 1)

  quantity.times do
    ResqueSpec.perform_all!
  end
end