Sha256: 599fd01f87b2e7a5e35ebda404b8afa567c70e51aa2d06403746166366c628e5
Contents?: true
Size: 661 Bytes
Versions: 18
Compression:
Stored size: 661 Bytes
Contents
require 'test_helper' begin require 'hoptoad_notifier' rescue LoadError warn "Install hoptoad_notifier gem to run Hoptoad tests." end if defined? HoptoadNotifier 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
18 entries across 18 versions & 6 rubygems