Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arguments to find_by_token_for #299

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

dwightwatson
Copy link
Contributor

This fixes an issue where find_by_token_for expects two arguments, not a hash. The first argument should be the token purpose.

Adds test coverage for it too. I'll slow down on these test PRs and see what direction you take things going forward.

I really wanted to get assert_enqueued_email_with PasswordMailer, :password_reset do ... end working, but it just wasn't having it. I've had this same issue in my own apps too and not sure what the problem is, perhaps a bug in the assertion itself.

@Shpigford Shpigford merged commit 97789bc into maybe-finance:main Feb 5, 2024
4 checks passed
JuanVqz pushed a commit to JuanVqz/maybe that referenced this pull request Feb 5, 2024
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.

2 participants