Sha256: 10d988dee5d89075bacb53c12fb76af0080d0d86a0f11554d786b520094c6961

Contents?: true

Size: 678 Bytes

Versions: 2

Compression:

Stored size: 678 Bytes

Contents

require 'spec_helper'
require 'resque'

if defined? ActiveJob
  describe "Active Job with Resque backend" do

    before :all 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

      Resque.size(:paperclip)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
delayed_paperclip-2.9.1 spec/integration/active_job_resque_spec.rb
delayed_paperclip-2.9.0 spec/integration/active_job_resque_spec.rb