Sha256: 7f6bc7e8750d769ba30c4d47ee4b984858cb1cbe60a67f17020f333e1519ded3

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'
require 'rollbar/delay/resque'

describe Rollbar::Delay::Resque do
  describe '.call' do
    let(:payload) do
      { :key => 'value' }
    end

    before do
      allow(Resque).to receive(:inline?).and_return(true)
    end

    it 'process the payload' do
      loaded_hash = MultiJson.load(MultiJson.dump(payload))

      expect(Rollbar).to receive(:process_payload).with(loaded_hash)
      described_class.call(payload)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rollbar-1.3.0 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.13 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.12 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.11 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.10 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.9 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.8 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.7 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.6 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.5 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.4 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.3 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.2 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.1 spec/rollbar/delay/resque_spec.rb
rollbar-1.2.0 spec/rollbar/delay/resque_spec.rb
rollbar-1.1.0 spec/rollbar/delay/resque_spec.rb