🚀 Announcing Chapter Zero
Every technical guide starts with boilerplate: navigation, landing pages, blogs, social previews...
I extracted the foundation behind Minitest Rails into an open-source template.
Before Chapter 1, start with Chapter Zero.
minitestrails.com/blog/annou…
Language versions change and break your app.
​Framework versions update and break your app.
But the tests you write are nearly perpetual.
They rarely break, they act as your ultimate source of truth, and they catch the breakage when your dependencies inevitably shift.
With AI, it's easier than ever to add tests but you need to know what tests to add.
Start learning tests to add with what and how from today with minitestrails.com ✨
(It's completely free!)
I am extracting the base of minitestrails.com to an open-sourced starter template.
The idea is to kickstart the project for anyone looking to build technical guides.
It takes at least a weekend to build a proper base even with AI, skip it with "Chapter Zero"
Coming soon!
This was when Cursor was just out and the world was still writing code by hand.
Oh, how the script has flipped!
Soon we’ll need an "Organic / 100% Handwritten" badge for our repos lol
Found this relic in my codebase from last year:
Chapter 5 of Minitest Rails is now live 🚀✨
I walk you through the following in this new chapter:
- Recipe scaffold
- Your first model test with TDD
- Integration tests
- Git commits after a green test run (a habit worth keeping in real projects)
minitestrails.com/guide/your…
"Your time is too valuable to spend it creating things people don’t want."
How I wish to know if people want my product or not.
I think I will be taking a lot of notes throughout this book. I just went through chapters summary and it has a lot of things I barely know.
generators.zerconfigrails.co… got a makeover.
It now hooks Zero Config Rails in multiple places and has much nicer UI than the old site.
Check it out!
#Rails Testing Tip ✨
Testing Auth0 login in Rails with Minitest is trickier than most authentication systems.
Why?
Because your tests shouldn't actually redirect to Auth0.
🧵 1/11
One gotcha:
Many apps load the Auth0 OmniAuth provider only outside test environments with `return if Rails.env.test?`
If you do this, request to `/auth/auth0` will raise routing errors during tests and fail.
Enable OmniAuth test mode instead of using early return.
10/11
If you're using Rails defaults and Minitest, I wrote a complete walkthrough showing the exact setup, helper methods, and system tests:
minitestrails.com/blog/testi…
11/11