Sha256: adec86897887d5d26a9836228fee3adf4f2f31ebc28de4383f6875e7567362bb
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' require 'resque' if defined? ActiveJob describe "Active Job with Resque backend" do before :each do DelayedPaperclip.options[:background_job_class] = DelayedPaperclip::Jobs::ActiveJob ActiveJob::Base.logger = nil ActiveJob::Base.queue_adapter = :resque Resque.remove_queue(:paperclip) end let(:dummy) { Dummy.new(:image => File.open("#{ROOT}/spec/fixtures/12k.png")) } describe "integration tests" do include_examples "base usage" end def process_jobs worker = Resque::Worker.new(:paperclip) worker.process end def jobs_count(queue = :paperclip) Resque.size(queue) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_paperclip-2.9.2 | spec/integration/active_job_resque_spec.rb |