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

Version Path
dispatch-rider-2.1.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-2.0.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.9.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.6 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.5 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.4 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.3 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.2 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.1 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.8.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.7.2 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.7.1 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.7.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.6.2 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.6.1 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb
dispatch-rider-1.6.0 spec/lib/dispatch-rider/airbrake_error_handler_spec.rb