Sha256: bf8bc1a068bcbdd44f346158429b6ad24e19a8ac7e96829c5643a1e6106103e7

Contents?: true

Size: 489 Bytes

Versions: 28

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

require 'delayed_job'
require 'delayed/worker'
require 'rollbar/delay/delayed_job'
require 'delayed/backend/test'

describe Rollbar::Delay::DelayedJob do
  before do
    Delayed::Backend::Test.prepare_worker
    Delayed::Worker.backend = :test
  end

  describe '.call' do
    let(:payload) { {} }
    it 'calls Rollbar' do
      expect(Rollbar).to receive(:process_from_async_handler).with(payload)

      Rollbar::Delay::DelayedJob.call(payload)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rollbar-2.18.2 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.18.0 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.17.0 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.16.4 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.16.3 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.16.2 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.16.0 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.6 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.5 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.4 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.3 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.2 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.1 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.15.0 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.14.1 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.14.0 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.13.3 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.13.2 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.13.1 spec/rollbar/delay/delayed_job_spec.rb
rollbar-2.13.0 spec/rollbar/delay/delayed_job_spec.rb