Skip to content

Commit

Permalink
fix: cli test for rails 8 (#639)
Browse files Browse the repository at this point in the history
In Rails 8, route drawing is deferred. It seems the easiest fix is to
explicity reload the routes manually.
  • Loading branch information
roelbondoc authored Nov 13, 2024
1 parent 6a64bf7 commit ec74cfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/honeybadger/cli/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def verify; end
end
CONTROLLER

::Rails.application.try(:reload_routes_unless_loaded)
::Rails.application.routes.tap do |r|
# RouteSet#disable_clear_and_finalize prevents existing routes from
# being cleared. We'll set it back to the original value when we're
Expand Down

0 comments on commit ec74cfd

Please sign in to comment.