Sha256: 19bfc45b32c9e227601da093cd5f727a5bab87173a82669f4337ad8912953ef4
Contents?: true
Size: 588 Bytes
Versions: 16
Compression:
Stored size: 588 Bytes
Contents
require "spec_helper" describe DispatchRider::AirbrakeErrorHandler do describe ".call" do let(:message) { DispatchRider::Message.new(subject: "TestMessage", body: "foo") } let(:exception) { Exception.new("Something went terribly wrong") } example do args = [ exception, controller: "DispatchRider", action: "TestMessage", parameters: { subject: "TestMessage", body: "foo" }, cgi_data: anything, ] expect(Airbrake).to receive(:notify).with(*args) described_class.call(message, exception) end end end
Version data entries
16 entries across 16 versions & 1 rubygems