spec/resque/failure/rollbar_spec.rb in resque-rollbar-0.0.5 vs spec/resque/failure/rollbar_spec.rb in resque-rollbar-0.1.0
- old
+ new
@@ -5,10 +5,10 @@
exception = StandardError.new('BOOM')
worker = Resque::Worker.new(:test)
queue = 'test'
payload = { 'class' => Object, 'args' => 89 }
- Rollbar.should_receive(:report_exception).with(exception, payload)
+ expect(Rollbar).to receive(:report_exception).with(exception, payload)
backend = Resque::Failure::Rollbar.new(exception, worker, queue, payload)
backend.save
end
end