Skip to content

Bump devise to 5.0.3 and fixes tests that need to be updated#6787

Merged
compwron merged 2 commits intorubyforgood:mainfrom
hexdevs:sb-devise-fixes-6786
Mar 18, 2026
Merged

Bump devise to 5.0.3 and fixes tests that need to be updated#6787
compwron merged 2 commits intorubyforgood:mainfrom
hexdevs:sb-devise-fixes-6786

Conversation

@stefannibrasil
Copy link
Copy Markdown
Contributor

@stefannibrasil stefannibrasil commented Mar 18, 2026

What github issue is this PR for, if any?

Fixes #6786

Breaking changes can be found in the Changelog: https://github.com/heartcombo/devise/blob/main/CHANGELOG.md#500rc---2025-12-31

What changed, and why?

With this new version, devise errors
are now lowercase. To prevent these tests
to erroring out again because of uppercase changes,
the text are asserted against a case insensitive
regex.

Fixes rubyforgood#6786

With this new version, devise errors
are now lowercase. To prevent these tests
to erroring out again because of uppercase changes,
the text are asserted against a case insensitive
regex.
@github-actions github-actions bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Mar 18, 2026
@compwron compwron requested a review from Copilot March 18, 2026 20:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the authentication stack by bumping Devise to 5.0.3 and adjusts system specs to tolerate Devise’s updated (lowercased) failure message formatting.

Changes:

  • Bump devise from 4.9.4 to 5.0.3 (and related dependency updates in Gemfile.lock).
  • Update system specs to assert the “invalid email or password” flash message using a case-insensitive regex.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
spec/system/sessions/new_spec.rb Makes invalid-login assertion case-insensitive for Devise 5 messaging.
spec/system/sessions/login_spec.rb Makes failed-login error assertion case-insensitive for Devise 5 messaging.
spec/system/all_casa_admins/sessions/new_spec.rb Makes invalid-login assertion case-insensitive for Devise 5 messaging.
Gemfile.lock Locks Devise 5.0.3 and updates related gem versions/constraints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@compwron compwron merged commit 012b0c0 into rubyforgood:main Mar 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code Tests! 🎉💖👏

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bump devise from 4.9.4 to 5.0.3

3 participants