Sha256: f338dd4dfad4da48dac7b51e5d3d7229fd0fccc63c1d79a0873fd639ea68a8af
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 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 } expect(Rollbar.notifier).to receive(:log).with('error', 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.2.0 | spec/resque/failure/rollbar_spec.rb |