Ask A Question

Notifications

You’re not receiving notifications from this thread.

Tests Without Assertions Warning in Rails 7.2 Discussion

I think another nifty trick is the pass method. You can use this as an alternative to assert_nothing_raised - just call it at the end of your test, and you're good2go.

Reply

I really enjoyed this lesson! Especially the deep dive into the source code.

Thanks for creating great content and for your curiosity in exploring how Rails works!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,277+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.