Sha256: ac0f0627333c0398e4346eb4a71c501aa78886344aa7728b99a7a482feb35c0b

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'

describe Resque::Failure::Rollbar do
  it 'should be notified of an error' do
    exception = StandardError.new('BOOM')
    worker    = Resque::Worker.new(:test)
    queue     = 'test'
    payload   = { 'class' => Object, 'args' => 89 }

    Rollbar.should_receive(:notify_exception).with(exception, payload)
    backend = Resque::Failure::Rollbar.new(exception, worker, queue, payload)
    backend.save
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resque-rollbar-0.0.2 spec/resque/failure/rollbar_spec.rb