Sha256: 9af555b489481b665c2d62bc71d3151327debf8b509f80f1872cd83be82c3b30
Contents?: true
Size: 671 Bytes
Versions: 62
Compression:
Stored size: 671 Bytes
Contents
require 'test_helper' begin require 'airbrake' rescue LoadError warn "Install airbrake gem to run Airbrake tests." end if defined? Airbrake require 'resque/failure/airbrake' context "Airbrake" do test "should be notified of an error" do exception = StandardError.new("BOOM") worker = Resque::Worker.new(:test) queue = "test" payload = {'class' => Object, 'args' => 66} Airbrake.expects(:notify_or_ignore).with( exception, :parameters => {:payload_class => 'Object', :payload_args => '66'}) backend = Resque::Failure::Airbrake.new(exception, worker, queue, payload) backend.save end end end
Version data entries
62 entries across 62 versions & 5 rubygems