Skip to content

Commit

Permalink
Test rails 6 & 7 on Ruby 3.4, update steps for different format of ra…
Browse files Browse the repository at this point in the history
…ils error message
  • Loading branch information
Cawllec committed Jan 15, 2025
1 parent 8f3d05c commit 1ea85ec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maze-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['2.7', '3.4']
ruby-version: ['2.7', '3.3']
rails-version: ['6', '7']
include:
- ruby-version: '2.5'
Expand Down
2 changes: 1 addition & 1 deletion features/rails_features/before_notify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Scenario: Rails before_notify controller method works on unhandled errors
And I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )BeforeNotifyController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )BeforeNotifyController"
And the event "unhandled" is true
And the event "app.type" equals "rails"
And the event "metaData.request.url" ends with "/before_notify/unhandled"
Expand Down
2 changes: 1 addition & 1 deletion features/rails_features/handled.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Scenario: Thrown handled NameError
And I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )HandledController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )HandledController"
And the event "unhandled" is false
And the event "metaData.request.url" ends with "/handled/thrown"
And the event "app.type" equals "rails"
Expand Down
2 changes: 1 addition & 1 deletion features/rails_features/on_error.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Scenario: Rails on_error works on unhandled errors
And I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the event "unhandled" is true
And the event "app.type" equals "rails"
And the event "metaData.request.url" ends with "/unhandled/error"
Expand Down
4 changes: 2 additions & 2 deletions features/rails_features/request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Scenario: Request data is collected automatically
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the event "unhandled" is true
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the event "app.type" equals "rails"
And the event "metaData.request.clientIp" is not null
And the event "metaData.request.headers.Host" is not null
Expand All @@ -33,7 +33,7 @@ Scenario: Request data can be modified in callbacks
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the event "unhandled" is true
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the event "app.type" equals "rails"
And the event "metaData.request.something" equals "hello"
And the event "metaData.request.params.another_thing" equals "hi"
Expand Down
2 changes: 1 addition & 1 deletion features/rails_features/unhandled.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Scenario: Unhandled RuntimeError
Then the error is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier" notifier
And the event "unhandled" is true
And the exception "errorClass" equals "NameError"
And the exception "message" matches "^undefined local variable or method `generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the exception "message" matches "^undefined local variable or method ('|`)generate_unhandled_error' for (#<|an instance of )UnhandledController"
And the event "app.type" equals "rails"
And the event "metaData.request.url" ends with "/unhandled/error"
And the event "severity" equals "error"
Expand Down

0 comments on commit 1ea85ec

Please sign in to comment.