Skip to content

Fix test suite deprecations and failure on Rails main (8.2) - #5867

Merged
carlosantoniodasilva merged 1 commit into
heartcombo:mainfrom
excid3:rails-8-2-tests
Oct 6, 2026
Merged

carlosantoniodasilva merged 1 commit into
heartcombo:mainfrom
excid3:rails-8-2-tests

Conversation

@excid3

@excid3 excid3 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Three small test-suite fixes so the rails-main CI job (Rails 8.2) passes again. No library changes.

  • AbstractController::Base.action_methods now returns a frozen Set, so internal_helpers_test.rb fails with FrozenError on delete_if. Use reject instead.
  • Mime::SET is deprecated in favor of Mime.symbols, which older supported Rails versions don't have. The test app's ApplicationController picks whichever is available.
  • protect_from_forgery without a strategy is deprecated in 8.2; the test app now passes the current default (with: :null_session) explicitly.

The one remaining 8.2 deprecation in the suite comes from lib, Mime::EXTENSION_LOOKUP in DeviseController#navigational_formats, which #5856 already fixes.

CI on the fork with this change: https://github.com/excid3/devise/actions/runs/37405513876

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fb2E5SnkxkicWdSSbqUN4y

* `action_methods` now returns a frozen Set, so use `reject` instead of
  `delete_if` in the internal helpers test.
* `Mime::SET` is deprecated in favor of `Mime.symbols`.
* `protect_from_forgery` without a strategy is deprecated; pass the
  current default explicitly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@carlosantoniodasilva
carlosantoniodasilva merged commit 05811fb into heartcombo:main Oct 6, 2026
28 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants