Skip to content

fix: update mailer mock to use deliver_now for Devise 5 compatibility#272

Merged
tvdeyen merged 1 commit intosolidusio:mainfrom
tvdeyen:adjust-tests-for-devise-5
Apr 8, 2026
Merged

fix: update mailer mock to use deliver_now for Devise 5 compatibility#272
tvdeyen merged 1 commit intosolidusio:mainfrom
tvdeyen:adjust-tests-for-devise-5

Conversation

@tvdeyen
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen commented Apr 8, 2026

Summary

Devise 5 changed send_devise_notification to call deliver_now instead of deliver. The test double only stubbed deliver, causing a failure. This is a test-only change as real ActionMailer objects respond to both methods.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

Devise 5 changed send_devise_notification to call deliver_now instead
of deliver. The test double only stubbed deliver, causing a failure.
This is a test-only change — real ActionMailer objects respond to both
methods.
@tvdeyen tvdeyen requested a review from a team April 8, 2026 15:37
@tvdeyen tvdeyen enabled auto-merge April 8, 2026 15:45
@tvdeyen tvdeyen merged commit 0032349 into solidusio:main Apr 8, 2026
24 checks passed
@tvdeyen tvdeyen deleted the adjust-tests-for-devise-5 branch April 8, 2026 16:21
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.

3 participants