How to click links in Rails Mailers when writing tests - DEV Community
In this tutorial, you'll learn how to write a test that clicks a link in a Rails mailer. This is particularly useful when testing emails with links that require unique tokens or may expire, such as password reset emails. We'll cover the steps to create a helper method that uses Capybara to find and click the link in the email, allowing you to fully test the functionality of a passpord reset email.
How to click links in Rails Mailers when writing tests - DEV Community #ruby #rubydeveloper #rubyonrails #dev #tests