Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

Tests Without Assertions Warning in Rails 7.2 Discussion

1
General

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.

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!

Join the discussion
Create an account Log in