Sha256: 298ffbe695583462a2d1ae0733a4f8f22c2edb850c786416ab29c485127036f9
Contents?: true
Size: 696 Bytes
Versions: 56
Compression:
Stored size: 696 Bytes
Contents
require 'test_helper' begin require 'hoptoad_notifier' rescue LoadError warn "Install hoptoad_notifier gem to run Hoptoad tests." end if defined? HoptoadNotifier require 'resque/failure/hoptoad' context "Hoptoad" 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} HoptoadNotifier.expects(:notify_or_ignore).with( exception, :parameters => {:payload_class => 'Object', :payload_args => '66'}) backend = Resque::Failure::Hoptoad.new(exception, worker, queue, payload) backend.save end end end
Version data entries
56 entries across 56 versions & 4 rubygems