Sha256: 7cae481245fc591e288f04e2379c771e756688a1d155b3f7f34449d2f82b0393

Contents?: true

Size: 1.95 KB

Versions: 4

Compression:

Stored size: 1.95 KB

Contents

Feature: Auto notify

@rails3 @rails4 @rails5 @rails6
Scenario: Auto_notify set to false in the initializer prevents unhandled error sending
  Given I set environment variable "BUGSNAG_AUTO_NOTIFY" to "false"
  And I start the rails service
  When I navigate to the route "/auto_notify/unhandled" on the rails app
  And I wait for 3 seconds
  Then I should receive no requests

@rails3 @rails4 @rails5 @rails6
Scenario: Auto_notify set to false in the initializer still sends handled errors
  Given I set environment variable "BUGSNAG_AUTO_NOTIFY" to "false"
  And I start the rails service
  When I navigate to the route "/auto_notify/handled" on the rails app
  And I wait to receive a request
  Then the request is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier"
  And the event "unhandled" is false
  And the exception "errorClass" equals "RuntimeError"
  And the exception "message" starts with "handled string"
  And the event "app.type" equals "rails"
  And the event "metaData.request.url" ends with "/auto_notify/handled"

@rails3 @rails4 @rails5 @rails6
Scenario: Auto_notify set to false after the initializer prevents unhandled error sending
  Given I start the rails service
  When I navigate to the route "/auto_notify/unhandled_after" on the rails app
  And I wait for 3 seconds
  Then I should receive no requests

@rails3 @rails4 @rails5 @rails6
Scenario: Auto_notify set to false after the initializer still sends handled errors
  Given I start the rails service
  When I navigate to the route "/auto_notify/handled_after" on the rails app
  And I wait to receive a request
  Then the request is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier"
  And the exception "errorClass" equals "RuntimeError"
  And the exception "message" starts with "handled string"
  And the event "unhandled" is false
  And the event "metaData.request.url" ends with "/auto_notify/handled_after"
  And the event "app.type" equals "rails"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/rails_features/auto_notify.feature
bugsnag-6.14.0 features/rails_features/auto_notify.feature
bugsnag-6.13.1 features/rails_features/auto_notify.feature
bugsnag-6.13.0 features/rails_features/auto_notify.feature