mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
ed55232a78
Rspec allows expectations to be written using change(LogWorker.jobs, :size). The result of .jobs in this case was a derived array that wasn't manipulated under the covers. So when Rspec went to check the size of the array after the fact, it appeared that nothing had changed. This sets up a true array for the jobs for a single worker and pulls jobs off that array so rspec can properly make assertions. |
||
---|---|---|
.. | ||
extensions | ||
middleware | ||
testing | ||
api.rb | ||
cli.rb | ||
client.rb | ||
core_ext.rb | ||
exception_handler.rb | ||
fetch.rb | ||
launcher.rb | ||
logging.rb | ||
manager.rb | ||
paginator.rb | ||
processor.rb | ||
rails.rb | ||
redis_connection.rb | ||
scheduled.rb | ||
testing.rb | ||
util.rb | ||
version.rb | ||
web.rb | ||
web_helpers.rb | ||
worker.rb |