Skip to content

Fix stale 500 error page wording (#144); pin minitest for the Rails 8 test runner#512

Open
kltm wants to merge 2 commits into
ncbo:masterfrom
berkeleybop:fix/500-error-page-wording
Open

Fix stale 500 error page wording (#144); pin minitest for the Rails 8 test runner#512
kltm wants to merge 2 commits into
ncbo:masterfrom
berkeleybop:fix/500-error-page-wording

Conversation

@kltm

@kltm kltm commented Jun 1, 2026

Copy link
Copy Markdown

Summary

Two related changes, kept as separate commits:

  1. Pin minitest to ~> 5.25 (test-infra prerequisite). minitest 6.0.3 (resolved transitively under minitest (>= 5.1)) changed run_suite's calling convention and is incompatible with the Rails 8.0.x test runner (railties test_unit/line_filtering): bin/rails test crashes with wrong number of arguments (given 3, expected 1..2) before any test runs. This pin restores the entire Minitest suite. Documented in CLAUDE.md.
  2. Fix the 500 error page wording (closes change wording for 500 error page #144). The internal server error page claimed "We have been notified of this error" — a stale Airbrake-era promise that is no longer accurate (and misleading on the appliance). Replaced with a neutral apology, plus a view-render test.

Testing

In the dev container: sudo RAILS_ENV=test bin/rails test test/views/errors_view_test.rb → green. (The minitest pin is what allows the harness to run at all.)

Notes

The minitest pin is bundled here because it is a prerequisite for running these — and all other — Minitest tests on Rails 8. It is isolated as its own commit so it can be reviewed or cherry-picked independently.

Closes #144.

— Posted by Claude Code agent on behalf of @kltm.

kltm and others added 2 commits June 1, 2026 11:37
minitest 6.0.3 changed run_suite's calling convention, which is
incompatible with the Rails 8.0.x test runner (railties
test_unit/line_filtering): `bin/rails test` raises "wrong number of
arguments" in line_filtering.rb and crashes before any test runs. Pin
minitest to ~> 5.25 and document the constraint in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The internal server error page claimed "We have been notified of this
error", which dates from when Airbrake was in place; it is no longer
accurate (and misleading on the appliance). Replace it with a neutral
apology and add a view-render test asserting the stale copy is gone.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kltm kltm marked this pull request as ready for review June 15, 2026 20:21
@kltm

kltm commented Jun 15, 2026

Copy link
Copy Markdown
Author

@jvendetti This is necessary for the other small draft change at #513 . I'm not sure if a version bump would interfere with anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change wording for 500 error page

1 participant