Sha256: f0c59bd8f30c20965a92173c8b4eeb0801d45c255c10625b8ee65d04c0250155
Contents?: true
Size: 1.8 KB
Versions: 3
Compression:
Stored size: 1.8 KB
Contents
Feature: Unhandled exceptions support Background: Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa" And I set environment variable "APP_PATH" to "/usr/src" And I configure the bugsnag endpoint Scenario Outline: Unhandled RuntimeError Given I set environment variable "RUBY_VERSION" to "<ruby_version>" And I start the service "rails<rails_version>" And I wait for the app to respond on port "6128<rails_version>" When I navigate to the route "/unhandled/error" on port "6128<rails_version>" Then I should receive a request And the request is a valid for the error reporting API And the request used the "Ruby Bugsnag Notifier" notifier And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa" And the payload field "events" is an array with 1 element And the event "unhandled" is true And the exception "errorClass" equals "NameError" And the exception "message" starts with "undefined local variable or method `generate_unhandled_error' for #<UnhandledController" And the event "app.type" equals "rails" And the event "metaData.request.url" ends with "/unhandled/error" And the event "severity" equals "error" And the event "severityReason.type" equals "unhandledExceptionMiddleware" And the event "severityReason.attributes.framework" equals "Rack" Examples: | ruby_version | rails_version | | 2.0 | 3 | | 2.1 | 3 | | 2.2 | 3 | | 2.2 | 4 | | 2.2 | 5 | | 2.3 | 3 | | 2.3 | 4 | | 2.3 | 5 | | 2.4 | 3 | | 2.4 | 5 | | 2.5 | 3 | | 2.5 | 5 |
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bugsnag-6.11.1 | features/rails_features/unhandled.feature |
bugsnag-6.11.0 | features/rails_features/unhandled.feature |
bugsnag-6.10.0 | features/rails_features/unhandled.feature |