Test Rails apps with Minitest, not guesswork

Learn automated testing step by step, from CRUD to models, fixtures, system tests, mailers, jobs, and CI. Minitest, fixtures, and Rails defaults the whole way.

22 chapters Beginner-friendly 100% free No paywall One hands-on app

In an age where AI dominates the headlines, there has never been a more important time for real human in the loop testing. And when it comes to automated testing in Rails, Prabin Poudel is who I trust to get it right.

Justin Hamilton
Justin Hamilton
Owner
Hamilton Development Company

Start here in three steps

You don't have to read everything today. Follow this path and you'll have a real test running in your own app.

  1. Step 1

    See why Minitest fits Rails

    Read the introduction: who this is for, how the Recipes app grows, and why you won't need to hunt for a second test stack.

  2. Step 2

    Set up the Recipes app

    Spin up the sample app with Minitest and system tests wired the way later chapters expect.

  3. Step 3

    Write your first automated test

    Turn a scenario into a failing test, make it pass, and build the habit of green before you commit.

Begin the guide

Built for you if…

Whether you're on day one or you've been testing in RSpec for years, the guide meets you where you are.

  • New to Rails testing

    You know you should write tests but not where to start. We go step by step with plain language, scenarios, and one app so nothing feels random.

  • Coming from RSpec

    You want to see how Minitest holds up on a real Rails app without switching frameworks mid-project. Same problems, default stack.

  • Adding tests at work

    You need a pattern for mailers, jobs, auth, or an existing codebase. Use the chapter you need, or follow the full path when you have time.

New chapters land in your inbox

Already reading? Get a short note when new guide chapters and blog posts go live. No spam.

Prefer to read now? Start with the introduction.

Prabin Poudel

Hi, I'm Prabin Poudel

I wrote this guide because I remember searching "how to test Rails" and only finding RSpec. Rails already ships Minitest. I wanted one free, beginner-friendly path that sticks to defaults.

By day I'm a Rails consultant and SaaS owner at Zero Config Rails. Clients hire me when they need features shipped and test suites back to green.

You might know me from @coolprobn on Twitter, my Rails articles, or GitHub.

Thank you for reading Minitest Rails.

Read why I built this guide