spec/spec_helper.rb in datadog-notifications-0.4.4 vs spec/spec_helper.rb in datadog-notifications-0.4.5

- old
+ new

@@ -60,7 +60,10 @@ c.hostname = "test.host" c.reporter = Mock::Reporter c.tags = ["custom:tag"] c.use Datadog::Notifications::Plugins::ActiveRecord - c.use Datadog::Notifications::Plugins::Grape, tags: ["more:tags"], metric_name: "api.request" + c.use Datadog::Notifications::Plugins::Grape, + tags: ["more:tags"], + metric_name: "api.request", + exception_handler: ->e { e.message.include?("unauthorized") ? 401 : 500 } end