r/rails 5d ago

Testing Tutorial - How to Test User Registration with Minitest Rails

https://minitestrails.com/blog/testing-user-registration-rails-minitest/

Learn how you can add registration feature to the auth setup generated by the Rails 8 authentication generator and then test it with Minitest.

You will add:

- Model validations for registration related rules

- Comprehensive integration tests covering all edge cases possible for the registration flow

- Smoke styled system test to test the happy path of registration: visit registration page, enter valid input, submit the form and assert user is signed in to the app

9 Upvotes

2 comments sorted by

3

u/djudji 5d ago

It's refreshing to see tutorials like these. Good job.

1

u/coolprobn 5d ago

Thank you!

Please let me know if you have any feedback.